Skip to content

Commit

Permalink
tests(fix timeout): tests projects should not try to import a testem …
Browse files Browse the repository at this point in the history
…from an unpublished package of the monorepo
  • Loading branch information
BlueCutOfficial committed Jul 3, 2024
1 parent 98aa0b5 commit a11010d
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 28 deletions.
24 changes: 22 additions & 2 deletions packages/util/testem.js
Original file line number Diff line number Diff line change
@@ -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),
},
},
};
24 changes: 22 additions & 2 deletions test-packages/sample-transforms/testem.js
Original file line number Diff line number Diff line change
@@ -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),
},
},
};
24 changes: 0 additions & 24 deletions test-packages/support/testem-config.ts

This file was deleted.

0 comments on commit a11010d

Please sign in to comment.