mirror of
https://github.com/owncast/owncast.git
synced 2024-11-24 21:59:43 +03:00
25 lines
571 B
JavaScript
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'],
|
|
};
|