Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3721934
D7637.id25784.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7637.id25784.diff
View Options
diff --git a/.github/workflows/eslint_flow_jest.yml b/.github/workflows/eslint_flow_jest.yml
--- a/.github/workflows/eslint_flow_jest.yml
+++ b/.github/workflows/eslint_flow_jest.yml
@@ -66,3 +66,7 @@
- name: '[web] test'
working-directory: ./web
run: yarn test
+
+ - name: '[native] test'
+ working-directory: ./native
+ run: yarn test
diff --git a/.lintstagedrc.js b/.lintstagedrc.js
--- a/.lintstagedrc.js
+++ b/.lintstagedrc.js
@@ -33,6 +33,9 @@
'{native,lib}/**/*.js': function nativeFlow(files) {
return 'yarn workspace native flow --quiet';
},
+ '{native,lib}/**/*.js': function nativeFlow(files) {
+ return 'yarn workspace native test';
+ },
'{keyserver,web,lib}/**/*.js': function keyserverFlow(files) {
return 'yarn workspace keyserver flow --quiet';
},
diff --git a/native/__tests__/test.js b/native/__tests__/test.js
deleted file mode 100644
--- a/native/__tests__/test.js
+++ /dev/null
@@ -1,13 +0,0 @@
-// @flow
-
-import 'react-native';
-import * as React from 'react';
-import renderer from 'react-test-renderer';
-
-import Root from '../root.react.js';
-
-// Note: test renderer must be required after react-native.
-
-it('renders correctly', () => {
- renderer.create(<Root />);
-});
diff --git a/package.json b/package.json
--- a/package.json
+++ b/package.json
@@ -27,7 +27,7 @@
"arcpatch": "git pull --all --tags && arc patch",
"postinstall": "bash ./postinstall.sh",
"flow-all": "yarn workspace lib flow && yarn workspace web flow && yarn workspace landing flow && yarn workspace native flow && yarn workspace keyserver flow && yarn workspace desktop flow && yarn workspace electron-update-server flow",
- "jest-all": "yarn workspace lib test && yarn workspace keyserver test && yarn workspace web test"
+ "jest-all": "yarn workspace lib test && yarn workspace keyserver test && yarn workspace web test && yarn workspace native test"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 9, 2:11 PM (10 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2822832
Default Alt Text
D7637.id25784.diff (1 KB)
Attached To
Mode
D7637: [native] Enable tests in CI
Attached
Detach File
Event Timeline
Log In to Comment