mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-16 11:49:47 +08:00
25 lines
584 B
JavaScript
25 lines
584 B
JavaScript
const { defaults: tsjPreset } = require("ts-jest/presets");
|
|
|
|
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
module.exports = {
|
|
...tsjPreset,
|
|
preset: "react-native",
|
|
transform: {
|
|
"^.+\\.jsx$": "babel-jest",
|
|
"^.+\\.tsx?$": [
|
|
"ts-jest",
|
|
{
|
|
tsconfig: "tsconfig.spec.json",
|
|
},
|
|
],
|
|
},
|
|
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
|
|
testPathIgnorePatterns: [
|
|
"/node_modules/",
|
|
"/__tests__/babel/",
|
|
"/__tests__/tailwindcss/runner/",
|
|
"/__tests__/style-sheet/tests",
|
|
"/__tests__/types.d.ts",
|
|
],
|
|
};
|