Skip to content

Commit e6f2e8b

Browse files
Merge pull request #57 from ember-cli/nvp/tests-use-different-output-direcotry
Tests should use different output directory as to not troll the library author
2 parents 8c504e4 + f4ea08d commit e6f2e8b

5 files changed

Lines changed: 12 additions & 3 deletions

File tree

files/.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
# compiled output
55
/dist/
6+
/dist-*/
67
/declarations/
78

89
# misc

files/eslint.config.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,14 @@ const config = [
4343
* https://eslint.org/docs/latest/use/configure/ignore
4444
*/
4545
{
46-
ignores: ['dist/', 'declarations/', 'node_modules/', 'coverage/', '!**/.*'],
46+
ignores: [
47+
'dist/',
48+
'dist-*/',
49+
'declarations/',
50+
'node_modules/',
51+
'coverage/',
52+
'!**/.*',
53+
],
4754
},
4855
/**
4956
* https://eslint.org/docs/latest/use/configure/configuration-files#configuring-linter-options

files/gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# compiled output
22
dist/
3+
dist-tests/
34
declarations/
45

56
# from scenarios

files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"lint:js:fix": "eslint . --fix",<% if (typescript) { %>
2626
"lint:types": "glint",<% } %>
2727
"start": "vite dev",
28-
"test": "vite build --mode=development && testem --file testem.cjs ci --port 0",
28+
"test": "vite build --mode=development --out-dir dist-tests && testem --file testem.cjs ci --port 0",
2929
"prepack": "rollup --config"
3030
},
3131
"dependencies": {

files/testem.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
if (typeof module !== 'undefined') {
44
module.exports = {
55
test_page: 'tests/index.html?hidepassed',
6-
cwd: 'dist',
6+
cwd: 'dist-tests',
77
disable_watching: true,
88
launch_in_ci: ['Chrome'],
99
launch_in_dev: ['Chrome'],

0 commit comments

Comments
 (0)