|
7 | 7 | "lint:root": "eslint tests",
|
8 | 8 | "build": "npm run build --workspace=packages --if-present",
|
9 | 9 | "pretest": "npm run build",
|
10 |
| - "serve": "http-server -c-1 -s -p 3000 . --cors --headers '{\"Cross-Origin-Embedder-Policy\":\"require-corp\",\"Cross-Origin-Opener-Policy\":\"same-origin\"}'", |
| 10 | + "serve": "http-server -c-1 -s -p 3000 . --cors --headers '{\"Cross-Origin-Embedder-Policy\":\"require-corp\",\"Cross-Origin-Opener-Policy\":\"same-origin\",\"Cross-Origin-Resource-Policy\":\"cross-origin\"}'", |
11 | 11 | "test": "server-test test:browser:server 3000 test:all",
|
12 | 12 | "test:all": "npm-run-all test:browser:*:*",
|
13 |
| - "test:browser": "mocha-headless-chrome --args=\"--enable-features=SharedArrayBuffer --enable-experimental-web-platform-features --cross-origin-isolated --allow-file-access-from-files\" -a no-sandbox", |
| 13 | + "test:browser": "mocha-headless-chrome --args=\"--enable-features=SharedArrayBuffer --enable-experimental-web-platform-features --cross-origin-isolated --allow-file-access-from-files --disable-web-security --allow-insecure-localhost --no-sandbox --disable-setuid-sandbox\" -a no-sandbox", |
14 | 14 | "test:browser:core:mt": "npm run test:browser -- -f http://localhost:3000/tests/ffmpeg-core-mt.test.html",
|
15 | 15 | "test:browser:core:st": "npm run test:browser -- -f http://localhost:3000/tests/ffmpeg-core-st.test.html",
|
16 | 16 | "test:browser:ffmpeg:mt": "npm run test:browser -- -f http://localhost:3000/tests/ffmpeg-mt.test.html",
|
|
20 | 20 | "test:node:core:mt": "npm run test:node -- --require tests/test-helper-mt.js tests/ffmpeg-core.test.js",
|
21 | 21 | "test:node:core:st": "npm run test:node -- --require tests/test-helper-st.js tests/ffmpeg-core.test.js",
|
22 | 22 | "prepublishOnly": "npm run build",
|
23 |
| - "postinstall": "npm run build" |
| 23 | + "postinstall": "npm run build", |
| 24 | + "test:environment": "npm run serve & wait-on http://localhost:3000 && mocha-headless-chrome --args=\"--enable-features=SharedArrayBuffer --enable-experimental-web-platform-features --cross-origin-isolated --allow-file-access-from-files\" -a no-sandbox -f http://localhost:3000/tests/environment-check.test.html" |
24 | 25 | },
|
25 | 26 | "workspaces": [
|
26 | 27 | "packages/*",
|
|
0 commit comments