Skip to content

Commit

Permalink
Merge pull request #51 from carolin913/main
Browse files Browse the repository at this point in the history
test: unit test support
  • Loading branch information
honkinglin authored Mar 16, 2022
2 parents 2779f35 + b3bb328 commit 3660180
Show file tree
Hide file tree
Showing 8 changed files with 621 additions and 16 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"postsite:preview": "cp _site/index.html _site/404.html",
"lint": "eslint --ext .ts,.tsx ./ --max-warnings 0",
"lint:fix": "eslint --ext .ts,.tsx ./ --max-warnings 0 --fix",
"test": "echo \"no test specified, work in progress\"",
"test:update": "npm run test:unit-update && npm run test:node-update",
"test": "npm run test:unit",
"test:update": "npm run test:unit-update",
"test:unit": "bash -c 'jest --coverage --config test/config/jest.unit.conf.js ${1}' -- ",
"test:unit-update": "jest --config test/config/jest.unit.conf.js --updateSnapshot --coverage",
"test:node": "jest --config test/config/jest.ssr.conf.js",
Expand Down Expand Up @@ -160,4 +160,4 @@
"path": "./node_modules/cz-conventional-changelog"
}
}
}
}
Loading

0 comments on commit 3660180

Please sign in to comment.