setup-kubectl/node_modules/ts-jest/presets/index.js
github-actions[bot] 7f7e5ba5ea
Add node modules and compiled JavaScript from main (#57)
Co-authored-by: Oliver King <oking3@uncc.edu>
2022-06-21 12:18:30 -04:00

20 lines
397 B
JavaScript

const { createJestPreset } = require('../dist/presets/create-jest-preset')
module.exports = {
get defaults() {
return createJestPreset()
},
get jsWithTs() {
return createJestPreset({ allowJs: true })
},
get jsWithBabel() {
return createJestPreset(
{ allowJs: false },
{
transform: {
'^.+\\.jsx?$': 'babel-jest',
},
}
)
},
}