7f7e5ba5ea
Co-authored-by: Oliver King <oking3@uncc.edu>
20 lines
397 B
JavaScript
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',
|
|
},
|
|
}
|
|
)
|
|
},
|
|
}
|