diff --git a/packages/core/package.json b/packages/core/package.json index 333f39813..d419d9605 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -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": [ diff --git a/test-ci/package.json b/test-ci/package.json index c79cdd10c..3737d8ec4 100644 --- a/test-ci/package.json +++ b/test-ci/package.json @@ -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", @@ -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": [ diff --git a/test-ci/src/__tests__/actionBar.tsx b/test-ci/src/__tests__/actionBar.tsx index c7dcaffdb..023e4e006 100644 --- a/test-ci/src/__tests__/actionBar.tsx +++ b/test-ci/src/__tests__/actionBar.tsx @@ -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[] = [