Skip to content

Commit

Permalink
jest.config, CI: convert to typescript
Browse files Browse the repository at this point in the history
The --config parameter is included due to the fact that tsc
creates a jest.config.js file. If this parameter is not
specified, we encounter an error stating
"Multiple configurations found".
  • Loading branch information
Mersho committed Jan 22, 2024
1 parent 9f5810c commit 5553ee6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
npx commitlint --version
yarn --version
- name: Run tests to validate our plugins
run: yarn jest
run: yarn jest --config jest.config.ts

sanity-check:
name: Sanity check
Expand Down
5 changes: 0 additions & 5 deletions jest.config.js

This file was deleted.

8 changes: 8 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type { Config } from '@jest/types'

const config: Config.InitialOptions = {
preset: 'ts-jest',
testEnvironment: 'node',
}

export default config

0 comments on commit 5553ee6

Please sign in to comment.