Skip to content

Commit faefad1

Browse files
committed
chore: standardize formatting in jest.config.js for consistency
1 parent 1a4f339 commit faefad1

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ jobs:
1616
- uses: oven-sh/setup-bun@v2
1717

1818
- run: bun install --frozen-lockfile
19+
working-directory: ./package
1920

2021
- run: bun run lint
22+
working-directory: ./package
2123

2224
- run: bun run typecheck
25+
working-directory: ./package
2326

2427
test:
2528
name: Test Suite
@@ -30,8 +33,10 @@ jobs:
3033
- uses: oven-sh/setup-bun@v2
3134

3235
- run: bun install --frozen-lockfile
36+
working-directory: ./package
3337

3438
- run: bun run test:coverage
39+
working-directory: ./package
3540

3641
- name: Upload coverage reports
3742
uses: codecov/codecov-action@v4

package/jest.config.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
/** @type {import('jest').Config} */
22
const config = {
3-
testEnvironment: 'node',
4-
roots: ['<rootDir>/src'],
5-
testMatch: ['**/__tests__/**/*.test.ts'],
6-
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
3+
testEnvironment: "node",
4+
roots: ["<rootDir>/src"],
5+
testMatch: ["**/__tests__/**/*.test.ts"],
6+
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json"],
77
transform: {
8-
'^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json' }],
8+
"^.+\\.tsx?$": ["ts-jest", { tsconfig: "tsconfig.test.json" }],
99
},
10-
collectCoverageFrom: [
11-
'src/**/*.ts',
12-
'!src/**/*.d.ts',
13-
'!src/**/*.test.ts',
14-
'!src/__tests__/**',
15-
],
10+
collectCoverageFrom: ["src/**/*.ts", "!src/**/*.d.ts", "!src/**/*.test.ts", "!src/__tests__/**"],
1611
coverageThreshold: {
1712
global: {
1813
branches: 70,

0 commit comments

Comments
 (0)