Add a unit test

This commit is contained in:
Kat Huang 2024-01-06 18:51:59 -07:00
parent d68561b372
commit e527b198f9
3 changed files with 16 additions and 2 deletions

View File

@ -22,4 +22,4 @@ jobs:
- name: typecheck - name: typecheck
run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn tsc --noEmit' run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn tsc --noEmit'
- name: test - name: test
run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn run test' run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn run test --no-watchman'

14
App.tsx Normal file
View File

@ -0,0 +1,14 @@
import React from "react";
import { SafeAreaView, Text } from "react-native";
const App: React.FC = () => {
return (
<SafeAreaView>
<Text>Hello, World!</Text>
</SafeAreaView>
);
};
export default App;

View File

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import renderer from "react-test-renderer"; import renderer from "react-test-renderer";
import App from "./App"; import App from "../App";
describe("<App />", () => { describe("<App />", () => {