Skip to content

Commit cba563d

Browse files
committed
Use custom tsconfig for tests
1 parent 6115695 commit cba563d

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ lib/
3434

3535
# Editor directories and files
3636
.idea
37-
.vscode
37+
.vscode/settings.json
3838
*.suo
3939
*.ntvs*
4040
*.njsproj

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"${workspaceFolder}/test/**/*.ts"
2222
],
2323
"env": {
24-
"TS_NODE_PROJECT": "tsconfig.esnext.json"
24+
"TS_NODE_PROJECT": "tsconfig.test.json"
2525
},
2626
"internalConsoleOptions": "openOnSessionStart"
2727
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"watch": "shx rm -rf lib/ && babel --watch -d lib/ src/",
4141
"lint": "standard --fix",
4242
"coverage": "istanbul cover node_modules/mocha/bin/_mocha -- --opts mocha.opts",
43-
"test": "mocha --require ts-node/register test/**/*.test.ts",
43+
"test": "TS_NODE_PROJECT='tsconfig.test.json' mocha --require ts-node/register test/**/*.test.ts",
4444
"testee": "testee test/index.html --browsers firefox",
4545
"start": "npm run compile && node example/app",
4646
"docs:serve": "vuepress dev docs",

tsconfig.esnext.json renamed to tsconfig.test.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88
"target": "esnext",
99
"sourceMap": true
1010
},
11-
"include": [
12-
"src/**/*"
13-
],
14-
"exclude": [
15-
"node_modules",
16-
"**/*.test.js"
17-
]
18-
}
11+
"include": ["src/**/*"],
12+
"exclude": ["node_modules", "**/*.test.js"]
13+
}

0 commit comments

Comments
 (0)