expo-module-scripts
Version:
A private package for various tasks for Expo module packages like compiling and testing
15 lines (14 loc) • 511 B
JavaScript
/** @type {import('jest').Config} */
module.exports = {
testEnvironment: 'node',
testRegex: '/__tests__/.*(test|spec)\\.[jt]sx?$',
transform: {
'^.+\\.[jt]sx?$': ['babel-jest', { configFile: require.resolve('./babel.config.cli.js') }],
},
watchPlugins: [
require.resolve('jest-watch-typeahead/filename'),
require.resolve('jest-watch-typeahead/testname'),
],
// See: https://jestjs.io/docs/configuration#prettierpath-string
prettierPath: require.resolve('jest-snapshot-prettier'),
};