diff --git a/packages/util/testem.js b/packages/util/testem.js index aa5f6a7a8..291e8842f 100644 --- a/packages/util/testem.js +++ b/packages/util/testem.js @@ -1,2 +1,22 @@ -const { testemConfig } = require('@embroider/test-support/testem-config'); -module.exports = testemConfig(); +module.exports = { + test_page: 'tests/index.html?hidepassed', + disable_watching: true, + launch_in_ci: ['Chrome'], + launch_in_dev: ['Chrome'], + browser_start_timeout: 90, + browser_args: { + Chrome: { + ci: [ + // --no-sandbox is needed when running Chrome inside a container + process.env.CI ? '--no-sandbox' : null, + '--headless', + '--disable-dev-shm-usage', + '--disable-software-rasterizer', + '--mute-audio', + '--remote-debugging-port=0', + '--window-size=1440,900', + `--crash-dumps-dir=${process.env.TMPDIR}`, + ].filter(Boolean), + }, + }, +}; diff --git a/test-packages/sample-transforms/testem.js b/test-packages/sample-transforms/testem.js index aa5f6a7a8..291e8842f 100644 --- a/test-packages/sample-transforms/testem.js +++ b/test-packages/sample-transforms/testem.js @@ -1,2 +1,22 @@ -const { testemConfig } = require('@embroider/test-support/testem-config'); -module.exports = testemConfig(); +module.exports = { + test_page: 'tests/index.html?hidepassed', + disable_watching: true, + launch_in_ci: ['Chrome'], + launch_in_dev: ['Chrome'], + browser_start_timeout: 90, + browser_args: { + Chrome: { + ci: [ + // --no-sandbox is needed when running Chrome inside a container + process.env.CI ? '--no-sandbox' : null, + '--headless', + '--disable-dev-shm-usage', + '--disable-software-rasterizer', + '--mute-audio', + '--remote-debugging-port=0', + '--window-size=1440,900', + `--crash-dumps-dir=${process.env.TMPDIR}`, + ].filter(Boolean), + }, + }, +}; diff --git a/test-packages/support/testem-config.ts b/test-packages/support/testem-config.ts deleted file mode 100644 index 9ba831481..000000000 --- a/test-packages/support/testem-config.ts +++ /dev/null @@ -1,24 +0,0 @@ -export function testemConfig() { - return { - test_page: 'tests/index.html?hidepassed', - disable_watching: true, - launch_in_ci: ['Chrome'], - launch_in_dev: ['Chrome'], - browser_start_timeout: 90, - browser_args: { - Chrome: { - ci: [ - // --no-sandbox is needed when running Chrome inside a container - process.env.CI ? '--no-sandbox' : null, - '--headless', - '--disable-dev-shm-usage', - '--disable-software-rasterizer', - '--mute-audio', - '--remote-debugging-port=0', - '--window-size=1440,900', - `--crash-dumps-dir=${process.env.TMPDIR}`, - ].filter(Boolean), - }, - }, - }; -}