Skip to content

Commit

Permalink
Try to fix native unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Mar 9, 2023
1 parent b74a912 commit 85939a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-block.yml
Expand Up @@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0

- name: Use desired version of NodeJS
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
uses: actions/setup-node@v3 # v3.6.0
with:
node-version: ${{ matrix.node }}
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -281,7 +281,7 @@
"prelint:php": "wp-env run composer \"update --no-interaction\"",
"lint:php": "wp-env run composer run-script lint",
"lint:pkg-json": "wp-scripts lint-pkg-json . 'packages/*/package.json'",
"native": "npm run --prefix packages/react-native-editor",
"native": "npm run --workspace=packages/react-native-editor",
"other:changelog": "node ./bin/plugin/cli.js changelog",
"other:check-licenses": "concurrently \"wp-scripts check-licenses --prod --gpl2 --ignore=@react-native-community/cli,@react-native-community/cli-platform-ios\" \"wp-scripts check-licenses --dev\"",
"preother:check-local-changes": "npm run docs:build",
Expand Down
2 changes: 1 addition & 1 deletion test/native/jest.config.js
Expand Up @@ -39,7 +39,7 @@ module.exports = {
// and add it first so https://github.com/facebook/react-native/blob/v0.60.0/Libraries/react-native/react-native-implementation.js#L324-L326 doesn't pick up the Platform npm module.
moduleDirectories: [
'../../node_modules/react-native/Libraries/Utilities',
'../../node_modules',
'node_modules',
],
moduleNameMapper: {
// Mock the CSS modules. See https://facebook.github.io/jest/docs/en/webpack.html#handling-static-assets
Expand Down

0 comments on commit 85939a6

Please sign in to comment.