Skip to content

Commit 4ae1c48

Browse files
committed
test: use ts-node --skip-ignore to collect coverage correctly 🎉
1 parent 1b9385e commit 4ae1c48

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
const tsNode = require('ts-node')
2+
3+
tsNode.register()
4+
15
module.exports = {
26
root: true,
37
extends: ['@1stg/eslint-config/recommended'],

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
],
1212
"scripts": {
1313
"build": "run-p build:*",
14-
"build:bundle": "r -x eslint-plugin-react/lib/rules/no-unescaped-entities",
14+
"build:bundle": "r",
1515
"build:ts": "tsc -b",
1616
"lint": "run-p lint:*",
1717
"lint:es": "eslint . --ext js,md,ts -f friendly",
1818
"lint:ts": "tslint -p . -t stylish",
1919
"lint:tsc": "tsc",
20-
"test": "jest",
20+
"test": "ts-node --skip-ignore node_modules/.bin/jest",
2121
"type-coverage": "type-coverage --cache --ignore-catch --detail --ignore-files *.d.ts --strict"
2222
},
2323
"devDependencies": {
@@ -41,6 +41,8 @@
4141
"@types/rebass": "^4.0.0",
4242
"@types/unist": "^2.0.3",
4343
"eslint": "^6.4.0",
44+
"eslint-mdx": "link:packages/eslint-mdx/src",
45+
"eslint-plugin-mdx": "link:packages/eslint-plugin-mdx/src",
4446
"husky": "^3.0.5",
4547
"jest": "^24.9.0",
4648
"lerna": "^3.16.4",

yarn.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4422,6 +4422,10 @@ eslint-import-resolver-ts@^0.4.0:
44224422
tiny-glob "^0.2.6"
44234423
tsconfig-paths "^3.9.0"
44244424

4425+
"eslint-mdx@link:packages/eslint-mdx/src":
4426+
version "0.0.0"
4427+
uid ""
4428+
44254429
eslint-module-utils@^2.4.0:
44264430
version "2.4.1"
44274431
resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.4.1.tgz#7b4675875bf96b0dbf1b21977456e5bb1f5e018c"
@@ -4482,6 +4486,10 @@ eslint-plugin-jest@^22.17.0:
44824486
dependencies:
44834487
"@typescript-eslint/experimental-utils" "^1.13.0"
44844488

4489+
"eslint-plugin-mdx@link:packages/eslint-plugin-mdx/src":
4490+
version "0.0.0"
4491+
uid ""
4492+
44854493
eslint-plugin-node@^10.0.0:
44864494
version "10.0.0"
44874495
resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-10.0.0.tgz#fd1adbc7a300cf7eb6ac55cf4b0b6fc6e577f5a6"

0 commit comments

Comments
 (0)