Skip to content

Commit

Permalink
Merge pull request #151 from marcalexiei/feature/test-snapshot-updates
Browse files Browse the repository at this point in the history
feat: use snapshots for tests
  • Loading branch information
elycruz authored Aug 21, 2024
2 parents 581ad2f + 4bbbaca commit 0ec8148
Show file tree
Hide file tree
Showing 9 changed files with 1,871 additions and 1,825 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
.idea/
.vscode/
.nyc_output/
.tests-output/

Expand Down
2,443 changes: 1,127 additions & 1,316 deletions package-lock.json

Large diffs are not rendered by default.

17 changes: 11 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build": "npm run build-downlevel-dts && tsc --project tsconfig.build.plugin.json && tsc --project tsconfig.build.insertStyle.json",
"build-downlevel-dts": "node scripts/clean-and-run-downlevel-dts.js",
"downlevel-dts": "downlevel-dts . ts3.5 [--to=3.5]",
"test": "nyc --reporter=html --reporter=text ava ./test/*.test.ts -s && npm run test:rollup.config.spec.ts",
"test": "nyc --reporter=html --reporter=text ava && npm run test:rollup.config.spec.ts",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"output-coverage-lcov": "nyc report --reporter=text-lcov > coverage/tests.lcov",
"test:rollup.config.spec.ts": "tsc --project tsconfig.spec.json --noEmit",
Expand Down Expand Up @@ -50,6 +50,9 @@
"dist"
],
"ava": {
"files": [
"./test/*.test.ts"
],
"extensions": [
"ts"
],
Expand All @@ -64,22 +67,24 @@
"sass": "^1.7.2"
},
"devDependencies": {
"@ava/typescript": "^3.0.1",
"@ava/typescript": "^5.0.0",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@types/icss-utils": "^5.1.2",
"@types/node": "^18.14.6",
"@types/resolve": "^0.0.8",
"ava": "^4.3.1",
"@types/sinon": "^17.0.3",
"ava": "^6.1.3",
"coveralls-next": "^4.2.1",
"downlevel-dts": "^0.10.0",
"eslint": "^7.32.0",
"happy-dom": "^14.12.3",
"husky": "^9.0.11",
"icss-utils": "^5.1.0",
"jsdom": "^17.0.0",
"nyc": "^15.1.0",
"nyc": "^17.0.0",
"postcss": "^8.4.16",
"rollup": "^1 || ^2 || ^3",
"sinon": "^7.2.2",
"sinon": "^18.0.0",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
},
Expand Down
Loading

0 comments on commit 0ec8148

Please sign in to comment.