Reviewed-on: #5 Co-authored-by: pedro-bento <mail@pbento.pt> Co-committed-by: pedro-bento <mail@pbento.pt>
15 lines
713 B
JavaScript
15 lines
713 B
JavaScript
// Media used by the browser E2E specs.
|
|
//
|
|
// Nothing binary is committed: global-setup builds a tiny mp4 with ffmpeg into
|
|
// e2e/.artifacts (git-ignored) and the specs read the path from here. The file
|
|
// only has to be a real, non-empty video container — the dashboard's upload
|
|
// path reads its duration from the browser and falls back gracefully when the
|
|
// browser cannot decode the codec, so an undecodable build still exercises the
|
|
// flow.
|
|
import { fileURLToPath } from 'node:url';
|
|
import path from 'node:path';
|
|
|
|
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
export const ARTIFACTS_DIR = path.join(here, '..', '.artifacts');
|
|
export const SIXTY_MP4 = path.join(ARTIFACTS_DIR, 'sixty.mp4');
|