Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 33eecd6

Browse files
committed
feat: catch more deprecation cases and add tests
1 parent b2788b3 commit 33eecd6

12 files changed

+7316
-2439
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
dist
3+
.vscode

.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
- stage: test
1111
script:
1212
- npm run format:check
13-
# FIXME: Enable tests once implemented
14-
# - npm run test
13+
- npm run test
1514
- npm run build
1615
deploy:
1716
provider: script

package-lock.json

+6,605-2,355
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+30-8
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@
1515
"scripts": {
1616
"ct": "git-cz",
1717
"prebuild": "rimraf dist",
18-
"build": "tsc --build",
18+
"build": "tsc --build tsconfig.build.json",
1919
"build:w": "npm run build -- --watch",
20-
"test": "echo \"Error: no test specified\" && exit 1",
20+
"test": "jest",
21+
"test:w": "npm run test -- --watch",
2122
"format": "prettier --write src/**/*",
2223
"format:check": "prettier --check src/**/*",
2324
"semantic-release": "semantic-release"
2425
},
2526
"dependencies": {
26-
"@typescript-eslint/experimental-utils": "^2.19.2",
27-
"eslint-plugin-sonarjs": "^0.5.0",
28-
"tslib": "^1.10.0"
27+
"@typescript-eslint/experimental-utils": "^2.34.0",
28+
"tslib": "^1.10.0",
29+
"tsutils": "^3.17.1"
2930
},
3031
"peerDependencies": {
3132
"@typescript-eslint/parser": "^2.19.2",
@@ -42,17 +43,19 @@
4243
"@semantic-release/npm": "^7.0.3",
4344
"@semantic-release/release-notes-generator": "^9.0.0",
4445
"@types/eslint": "^6.1.8",
45-
"@types/estree": "0.0.42",
46+
"@types/jest": "^25.0.0",
4647
"@types/node": "^13.7.1",
47-
"@typescript-eslint/eslint-plugin": "^2.19.2",
48-
"@typescript-eslint/parser": "^2.19.2",
48+
"@typescript-eslint/eslint-plugin": "^2.34.0",
49+
"@typescript-eslint/parser": "^2.34.0",
4950
"eslint": "^6.8.0",
5051
"commitizen": "^4.0.3",
5152
"cz-conventional-changelog": "^3.1.0",
5253
"husky": "^4.2.3",
54+
"jest": "^25.0.0",
5355
"prettier": "^1.19.1",
5456
"rimraf": "^3.0.2",
5557
"semantic-release": "^17.0.3",
58+
"ts-jest": "^25.0.0",
5659
"typescript": "^3.7.5"
5760
},
5861
"config": {
@@ -76,5 +79,24 @@
7679
"src/**/*": [
7780
"prettier --write"
7881
]
82+
},
83+
"jest": {
84+
"globals": {
85+
"ts-jest": {
86+
"isolatedModules": true
87+
}
88+
},
89+
"testEnvironment": "node",
90+
"transform": {
91+
"^.+\\.tsx?$": "ts-jest"
92+
},
93+
"testRegex": "./tests/.+\\.test\\.ts$",
94+
"moduleFileExtensions": [
95+
"ts",
96+
"tsx",
97+
"js",
98+
"jsx",
99+
"json"
100+
]
79101
}
80102
}

0 commit comments

Comments
 (0)