Skip to content

Commit

Permalink
Fixing mocha issue where it wouldn't pick detect test files: mochajs/…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbaeza committed Oct 3, 2019
1 parent 33645f0 commit c448b18
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"extension": [
".ts",
".tsx"
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test:all": "yarn test:functional && yarn test:a11y && yarn test:coverage",
"test:browser": "NODE_PATH=. TS_NODE_PROJECT=tsconfig.json NODE_ENV=test mocha test/accessibility/*.ts --exit",
"test:unit": "mocha test/unit/**/*.test.ts",
"test:coverage": "nyc report",
"test:coverage": "nyc mocha test/**/*.test.ts",
"test:a11y": "yarn test:browser",
"sonar-scan": "sonar-scanner",
"test:smoke": "exit 0",
Expand All @@ -28,6 +28,7 @@
"webpack": "^4.40.2"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^0.1.3",
"@types/chai": "^4.2.3",
"@types/express": "^4.17.1",
"@types/mocha": "^5.2.7",
Expand Down
3 changes: 2 additions & 1 deletion test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
--require ts-node/register
--require ts-node/register
--require source-map-support/register
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@
lodash "^4.17.13"
to-fast-properties "^2.0.0"

"@istanbuljs/nyc-config-typescript@^0.1.3":
version "0.1.3"
resolved "https://registry.yarnpkg.com/@istanbuljs/nyc-config-typescript/-/nyc-config-typescript-0.1.3.tgz#944d15b3ebdb71f963a628daffaa25ade981bb86"
integrity sha512-EzRFg92bRSD1W/zeuNkeGwph0nkWf+pP2l/lYW4/5hav7RjKKBN5kV1Ix7Tvi0CMu3pC4Wi/U7rNisiJMR3ORg==

"@sinonjs/commons@^1", "@sinonjs/commons@^1.3.0", "@sinonjs/commons@^1.4.0":
version "1.6.0"
resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.6.0.tgz#ec7670432ae9c8eb710400d112c201a362d83393"
Expand Down

0 comments on commit c448b18

Please sign in to comment.