1
0
Fork 0
mirror of https://github.com/actions/toolkit synced 2025-05-09 00:22:56 +00:00

Add working Jest & TypeScript config

- Jest now uses ts-jest for transforms
- TypeScript compilation via `lerna run tsc`
This commit is contained in:
Jonathan Clem 2019-04-19 15:15:34 -04:00
parent 97bc7918f4
commit f026c43b81
No known key found for this signature in database
GPG key ID: 48C5B22E9FD6E80F
10 changed files with 124 additions and 27 deletions

12
jest.config.js Normal file
View file

@ -0,0 +1,12 @@
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
roots: ['<rootDir>/packages'],
testEnvironment: 'node',
testMatch: ['**/__tests__/*.test.ts'],
testRunner: 'jest-circus/runner',
transform: {
'^.+\\.ts$': 'ts-jest'
},
verbose: true
}