Skip to content

Commit 5fa8530

Browse files
committed
feat: compilation
1 parent 8e83444 commit 5fa8530

File tree

9 files changed

+191
-331
lines changed

9 files changed

+191
-331
lines changed

.github/workflows/node-publish.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Node Publish
2-
run-name: '[${{ github.ref_name }}] triggered by [${{ github.event_name }}/${{ github.actor }}]'
2+
run-name: Node Publish [${{ github.ref_name }}] triggered by [${{ github.event_name }}/${{ github.actor }}]
33

44
on:
55
release:
@@ -14,4 +14,5 @@ jobs:
1414
secrets:
1515
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
1616
with:
17+
node_install: true
1718
dry_run: ${{ github.event_name != 'release' }}

.github/workflows/node-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Node Release
2-
run-name: '[${{ github.ref_name }}] triggered by [${{ github.event_name }}/${{ github.actor }}]'
2+
run-name: Node Release [${{ github.ref_name }}] triggered by [${{ github.event_name }}/${{ github.actor }}]
33

44
on:
55
push:
6-
branches: 'main'
6+
branches: main
77
workflow_dispatch:
88

99
jobs:

jest.config.js

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1+
/* eslint-disable @typescript-eslint/naming-convention */
2+
13
module.exports = {
2-
preset: 'ts-jest',
3-
testEnvironment: 'node',
4-
testMatch: ['**/test/**/*.test.{ts,tsx}'],
5-
collectCoverage: true,
6-
coverageDirectory: 'coverage',
7-
coverageThreshold: {
8-
global: {
9-
lines: 60,
10-
statements: 60,
11-
functions: 60,
12-
branches: 60,
13-
},
14-
},
15-
}
16-
4+
collectCoverage: true,
5+
coverageDirectory: 'coverage',
6+
coverageThreshold: {
7+
global: {
8+
branches: 60,
9+
functions: 60,
10+
lines: 60,
11+
statements: 60,
12+
},
13+
},
14+
preset: 'ts-jest',
15+
testEnvironment: 'node',
16+
testMatch: ['**/test/**/*.test.{ts,tsx}'],
17+
transform: {
18+
'^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.jest.json' }],
19+
},
20+
}

0 commit comments

Comments
 (0)