Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

Commit 0642fb9

Browse files
committed
🔧 (repo) Add basic test config
1 parent 804a213 commit 0642fb9

21 files changed

Lines changed: 6547 additions & 517 deletions

.DS_Store

6 KB
Binary file not shown.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ node_modules
33

44
# Build
55
dist
6+
7+
# Coverage
8+
coverage

.npmignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
# Dependency directory
1+
# Dependencies directories
22
node_modules
33

44
# Example
55
example
6+
7+
# Coverage
8+
coverage

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"prettier.eslintIntegration": true,
3+
"javascript.validate.enable": false,
4+
"editor.formatOnSave": true,
5+
"jest.showCoverageOnLoad": true,
6+
"typescript.validate.enable": true,
7+
"npm.packageManager": "yarn",
8+
"eslint.packageManager": "yarn"
9+
}

.vscode/tasks.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "test",
9+
"group": {
10+
"kind": "test",
11+
"isDefault": true
12+
}
13+
}
14+
]
15+
}

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ['module:metro-react-native-babel-preset'],
3+
};

example/App.tsx

Lines changed: 0 additions & 51 deletions
This file was deleted.

example/__tests__/App-test.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

example/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* @format
33
*/
44

5-
import {AppRegistry} from 'react-native';
6-
import App from './App';
7-
import {name as appName} from './app.json';
5+
import { AppRegistry } from "react-native";
6+
import App from "./src/App";
7+
import { name as appName } from "./app.json";
88

99
AppRegistry.registerComponent(appName, () => App);

example/ios/example.xcodeproj/project.pbxproj

Lines changed: 61 additions & 442 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)