Skip to content

Commit f6b9080

Browse files
committed
fix: expo-app workflow fixed
1 parent 3e86507 commit f6b9080

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

expo-app/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ expo-env.d.ts
66
# @end expo-cli
77
node_modules
88
.expo
9-
dist
9+
dist
10+
coverage

expo-app/__tests__/expo-app.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import { render, screen } from "@testing-library/react-native";
3-
import App from "../app";
3+
import App from "../app/index";
44

55
test("renders correctly", () => {
66
render(<App />);

expo-app/jest.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ module.exports = {
33
roots: ["<rootDir>/__tests__"],
44
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
55
testEnvironment: "jsdom",
6-
testPathIgnorePatterns: ["/node_modules/", "__test__"],
76
transformIgnorePatterns: [
8-
"node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg)",
7+
"node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg|@gluestack-ui/.*|tailwind-variants)",
98
],
109
setupFilesAfterEnv: ["@testing-library/jest-native/extend-expect"],
11-
collectCoverage: true,
1210
collectCoverageFrom: ["app/**/*.{ts,tsx}"],
1311
reporters: ["default", "jest-junit"],
1412

expo-app/junit.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<testsuites name="jest tests" tests="1" failures="0" errors="0" time="26.07">
3+
<testsuite name="undefined" errors="0" failures="0" skipped="0" timestamp="2024-09-19T12:14:21" time="24.97" tests="1">
4+
<testcase classname=" renders correctly" name=" renders correctly" time="3.039">
5+
</testcase>
6+
</testsuite>
7+
</testsuites>

0 commit comments

Comments
 (0)