owncast/web/jest.config.js
2024-10-19 15:28:41 -07:00

25 lines
571 B
JavaScript

module.exports = {
transform: {
'^.+\\.(js|jsx|ts|tsx)$': [
'babel-jest',
{
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
'@babel/preset-react',
'@babel/preset-typescript',
],
plugins: ['dynamic-import-node'],
},
],
},
testEnvironment: 'node',
testRegex: '/tests/.*\\.(test|spec)?\\.(ts|tsx)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
};