git.iko.soy/rowtype-yoga/purescript-yoga-react-native
on feature/macos-ios-support help sign in
32 lines 957 B history raw
1import { defineConfig } from "vitest/config";
3export default defineConfig({
4 test: {
5 globals: true,
6 include: ["test/**/*.test.js"],
7 exclude: ["test/visual/**"],
8 alias: {
9 "react-native": new URL(
10 "./test/__mocks__/react-native.js",
11 import.meta.url,
12 ).pathname,
13 "react-native-gesture-handler": new URL(
14 "./test/__mocks__/react-native-gesture-handler.js",
15 import.meta.url,
16 ).pathname,
17 "react-native-macos": new URL(
18 "./test/__mocks__/react-native-macos.js",
19 import.meta.url,
20 ).pathname,
21 "react-native-fs": new URL(
22 "./test/__mocks__/react-native-fs.js",
23 import.meta.url,
24 ).pathname,
25 "react-native-safe-area-context": new URL(
26 "./test/__mocks__/react-native-safe-area-context.js",
27 import.meta.url,
28 ).pathname,
29 twrnc: new URL("./test/__mocks__/twrnc.js", import.meta.url).pathname,
30 },
31 },
32});