Skip to content

Commit 2468b68

Browse files
committed
test: fix test case error.
1 parent 4c50ce7 commit 2468b68

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

packages/core/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
"types": "lib/index.d.ts",
88
"scripts": {
99
"watch": "npm run start",
10-
"start": "tsbb watch src/*.tsx & npm run copy:watch",
10+
"start": "tsbb watch src/*.tsx & npm run copy:watch & npm run copy:test:watch",
1111
"copy": "tsbb copy \"lib/**/*.{js,md,d.ts,png}\" --output ../../website/src/react-native",
1212
"copy:watch": "tsbb copy \"lib/**/*.{js,md,d.ts,png}\" --output ../../website/src/react-native --watch",
13+
"copy:test": "tsbb copy \"lib/**/*.{js,md,d.ts,png}\" --output ../../test-ci/src",
14+
"copy:test:watch": "tsbb copy \"lib/**/*.{js,md,d.ts,png}\" --output ../../test-ci/src --watch",
1315
"build": "tsbb build src/*.tsx && npm run copy"
1416
},
1517
"keywords": [

test-ci/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@typescript-eslint/parser": "^5.37.0",
2828
"@uiw/react-native": "4.0.10",
2929
"@uimjs/metro-config": "^1.0.2",
30-
"babel-jest": "^29.3.1",
30+
"@shopify/restyle": "~2.4.2",
3131
"eslint": "^7.32.0",
3232
"jest": "^29.3.1",
3333
"metro-react-native-babel-preset": "0.72.3",
@@ -43,8 +43,7 @@
4343
"prop-types": "15.7.2",
4444
"react-native-gesture-handler": "2.8.0",
4545
"react-native-root-siblings": "4.1.1",
46-
"react-native-svg": "13.9.0",
47-
"@shopify/restyle": "~2.4.2"
46+
"react-native-svg": "13.9.0"
4847
},
4948
"jest": {
5049
"setupFiles": [

test-ci/src/__tests__/actionBar.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
/**
2-
* @format
3-
*/
4-
51
import 'react-native';
62
import React from 'react';
7-
import ActionBar, { ActionBarActionsProps } from '../lib/ActionBar';
83
// Note: test renderer must be required after react-native.
94
import renderer from 'react-test-renderer';
5+
import ActionBar, { ActionBarActionsProps } from '../lib/ActionBar';
106

117
it('ActionBar', () => {
128
const actions: ActionBarActionsProps[] = [

0 commit comments

Comments
 (0)