Skip to content

Commit 91c0d4b

Browse files
authored
Merge pull request #155 from elycruz/dev
Use snapshots for tests
2 parents 581ad2f + 0ec8148 commit 91c0d4b

File tree

9 files changed

+1871
-1825
lines changed

9 files changed

+1871
-1825
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
.idea/
3+
.vscode/
34
.nyc_output/
45
.tests-output/
56

package-lock.json

Lines changed: 1127 additions & 1316 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"build": "npm run build-downlevel-dts && tsc --project tsconfig.build.plugin.json && tsc --project tsconfig.build.insertStyle.json",
1717
"build-downlevel-dts": "node scripts/clean-and-run-downlevel-dts.js",
1818
"downlevel-dts": "downlevel-dts . ts3.5 [--to=3.5]",
19-
"test": "nyc --reporter=html --reporter=text ava ./test/*.test.ts -s && npm run test:rollup.config.spec.ts",
19+
"test": "nyc --reporter=html --reporter=text ava && npm run test:rollup.config.spec.ts",
2020
"coverage": "nyc report --reporter=text-lcov | coveralls",
2121
"output-coverage-lcov": "nyc report --reporter=text-lcov > coverage/tests.lcov",
2222
"test:rollup.config.spec.ts": "tsc --project tsconfig.spec.json --noEmit",
@@ -50,6 +50,9 @@
5050
"dist"
5151
],
5252
"ava": {
53+
"files": [
54+
"./test/*.test.ts"
55+
],
5356
"extensions": [
5457
"ts"
5558
],
@@ -64,22 +67,24 @@
6467
"sass": "^1.7.2"
6568
},
6669
"devDependencies": {
67-
"@ava/typescript": "^3.0.1",
70+
"@ava/typescript": "^5.0.0",
6871
"@commitlint/cli": "^19.3.0",
6972
"@commitlint/config-conventional": "^19.2.2",
73+
"@types/icss-utils": "^5.1.2",
7074
"@types/node": "^18.14.6",
7175
"@types/resolve": "^0.0.8",
72-
"ava": "^4.3.1",
76+
"@types/sinon": "^17.0.3",
77+
"ava": "^6.1.3",
7378
"coveralls-next": "^4.2.1",
7479
"downlevel-dts": "^0.10.0",
7580
"eslint": "^7.32.0",
81+
"happy-dom": "^14.12.3",
7682
"husky": "^9.0.11",
7783
"icss-utils": "^5.1.0",
78-
"jsdom": "^17.0.0",
79-
"nyc": "^15.1.0",
84+
"nyc": "^17.0.0",
8085
"postcss": "^8.4.16",
8186
"rollup": "^1 || ^2 || ^3",
82-
"sinon": "^7.2.2",
87+
"sinon": "^18.0.0",
8388
"ts-node": "^10.9.1",
8489
"typescript": "^4.7.4"
8590
},

0 commit comments

Comments
 (0)