Skip to content

Commit 0ef3317

Browse files
committed
Tests should use different output directory as to not troll the library author
1 parent 8c504e4 commit 0ef3317

5 files changed

Lines changed: 5 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const config = [
4343
* https://eslint.org/docs/latest/use/configure/ignore
4444
*/
4545
{
46-
ignores: ['dist/', 'declarations/', 'node_modules/', 'coverage/', '!**/.*'],
46+
ignores: ['dist/', 'dist-*/', 'declarations/', 'node_modules/', 'coverage/', '!**/.*'],
4747
},
4848
/**
4949
* 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)