Skip to content

Commit

Permalink
test: fix test case error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 10, 2023
1 parent 4c50ce7 commit 2468b68
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 3 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
"types": "lib/index.d.ts",
"scripts": {
"watch": "npm run start",
"start": "tsbb watch src/*.tsx & npm run copy:watch",
"start": "tsbb watch src/*.tsx & npm run copy:watch & npm run copy:test:watch",
"copy": "tsbb copy \"lib/**/*.{js,md,d.ts,png}\" --output ../../website/src/react-native",
"copy:watch": "tsbb copy \"lib/**/*.{js,md,d.ts,png}\" --output ../../website/src/react-native --watch",
"copy:test": "tsbb copy \"lib/**/*.{js,md,d.ts,png}\" --output ../../test-ci/src",
"copy:test:watch": "tsbb copy \"lib/**/*.{js,md,d.ts,png}\" --output ../../test-ci/src --watch",
"build": "tsbb build src/*.tsx && npm run copy"
},
"keywords": [
Expand Down
5 changes: 2 additions & 3 deletions test-ci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@typescript-eslint/parser": "^5.37.0",
"@uiw/react-native": "4.0.10",
"@uimjs/metro-config": "^1.0.2",
"babel-jest": "^29.3.1",
"@shopify/restyle": "~2.4.2",
"eslint": "^7.32.0",
"jest": "^29.3.1",
"metro-react-native-babel-preset": "0.72.3",
Expand All @@ -43,8 +43,7 @@
"prop-types": "15.7.2",
"react-native-gesture-handler": "2.8.0",
"react-native-root-siblings": "4.1.1",
"react-native-svg": "13.9.0",
"@shopify/restyle": "~2.4.2"
"react-native-svg": "13.9.0"
},
"jest": {
"setupFiles": [
Expand Down
6 changes: 1 addition & 5 deletions test-ci/src/__tests__/actionBar.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
/**
* @format
*/

import 'react-native';
import React from 'react';
import ActionBar, { ActionBarActionsProps } from '../lib/ActionBar';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
import ActionBar, { ActionBarActionsProps } from '../lib/ActionBar';

it('ActionBar', () => {
const actions: ActionBarActionsProps[] = [
Expand Down

0 comments on commit 2468b68

Please sign in to comment.