Skip to content

Commit

Permalink
Use custom tsconfig for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallswain committed Nov 11, 2019
1 parent 6115695 commit cba563d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ lib/

# Editor directories and files
.idea
.vscode
.vscode/settings.json
*.suo
*.ntvs*
*.njsproj
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"${workspaceFolder}/test/**/*.ts"
],
"env": {
"TS_NODE_PROJECT": "tsconfig.esnext.json"
"TS_NODE_PROJECT": "tsconfig.test.json"
},
"internalConsoleOptions": "openOnSessionStart"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"watch": "shx rm -rf lib/ && babel --watch -d lib/ src/",
"lint": "standard --fix",
"coverage": "istanbul cover node_modules/mocha/bin/_mocha -- --opts mocha.opts",
"test": "mocha --require ts-node/register test/**/*.test.ts",
"test": "TS_NODE_PROJECT='tsconfig.test.json' mocha --require ts-node/register test/**/*.test.ts",
"testee": "testee test/index.html --browsers firefox",
"start": "npm run compile && node example/app",
"docs:serve": "vuepress dev docs",
Expand Down
11 changes: 3 additions & 8 deletions tsconfig.esnext.json → tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
"target": "esnext",
"sourceMap": true
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.test.js"
]
}
"include": ["src/**/*"],
"exclude": ["node_modules", "**/*.test.js"]
}

0 comments on commit cba563d

Please sign in to comment.