Skip to content

Commit

Permalink
Use ts-jest instead of babel directly
Browse files Browse the repository at this point in the history
Remove npm ci step
Fix tsconfig.json
Add ts-jest
f
  • Loading branch information
huntharo committed May 22, 2024
1 parent 089514e commit db21ddb
Show file tree
Hide file tree
Showing 15 changed files with 231 additions and 1,684 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ jobs:
- uses: ./.github/actions/configure-nodejs
with:
node-version: ${{ matrix.node-version }}
- run: npm run build --if-present
- run: npm run test:full
- run: npm run build
- run: npm run lint
- run: npm run test
- run: npm run test:xmllint
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dist
*~

# code coverage
coverage/*
coverage/
.nyc_output/

/yarn.lock
Expand Down
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ webpack.*.config.ts
karma.conf.js
/_config.yml
intellij-style-guide.xml
babel.config.js
urls.txt
stream-write.js
toflat.js
Expand Down
7 changes: 0 additions & 7 deletions babel.config.js

This file was deleted.

10 changes: 10 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
/** @type {import('jest').Config} */
const config = {
preset: 'ts-jest',
rootDir: 'tests/',
transform: {
"^.+\\.ts?$": [
"ts-jest",
{
tsconfig: "tsconfig.jest.json",
},
],
},
collectCoverage: true,
collectCoverageFrom: [
'lib/**/*.ts',
Expand Down
Loading

0 comments on commit db21ddb

Please sign in to comment.