Add a unit test
This commit is contained in:
parent
d68561b372
commit
e527b198f9
@ -22,4 +22,4 @@ jobs:
|
||||
- name: typecheck
|
||||
run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn tsc --noEmit'
|
||||
- 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
14
App.tsx
Normal 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;
|
@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import renderer from "react-test-renderer";
|
||||
|
||||
import App from "./App";
|
||||
import App from "../App";
|
||||
|
||||
|
||||
describe("<App />", () => {
|
Loading…
Reference in New Issue
Block a user