Skip to content

Commit 72fabc1

Browse files
committed
Update github actions
Signed-off-by: Joao Pereira <joaopapereira@gmail.com>
1 parent 5d992cc commit 72fabc1

6 files changed

Lines changed: 1019 additions & 463 deletions

File tree

jest.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ module.exports = {
55
testMatch: ['**/*.test.ts', 'test/fixtures/*.ts'],
66
testRunner: 'jest-circus/runner',
77
transform: {
8-
'^.+\\.ts$': 'ts-jest'
8+
'^.+\\.(ts|js)$': 'ts-jest'
9+
},
10+
transformIgnorePatterns: ['node_modules/(?!(?:@actions/core|@actions/github)/)'],
11+
moduleNameMapper: {
12+
'^@actions/core$': '<rootDir>/test/__mocks__/@actions/core.ts',
13+
'^@actions/github$': '<rootDir>/test/__mocks__/@actions/github.ts',
14+
'^@actions/github/(.*)$': '<rootDir>/test/__mocks__/@actions/github.ts'
915
},
1016
verbose: true
1117
}

0 commit comments

Comments
 (0)