Skip to content

Commit

Permalink
feat(detox): upgrade @config-plugins/detox to 6 (#18345)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi authored Jul 28, 2023
1 parent cfeb697 commit d65736e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 8 deletions.
4 changes: 1 addition & 3 deletions e2e/expo/src/expo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ describe('expo', () => {
expect(prebuildResult.combinedOutput).toContain('Config synced');
});

// TODO(emily): this test failed due to version conflict with conflict with @config-plugins/detox
// https://github.com/expo/config-plugins/issues/178
xit('should install', async () => {
it('should install', async () => {
// run install command
const installResults = await runCLIAsync(
`install ${appName} --no-interactive`
Expand Down
13 changes: 13 additions & 0 deletions packages/detox/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,19 @@
"alwaysAddToPackageJson": false
}
}
},
"16.6.0": {
"version": "16.6.0-beta.6",
"packages": {
"detox": {
"version": "^20.11.1",
"alwaysAddToPackageJson": false
},
"@config-plugins/detox": {
"version": "~6.0.0",
"alwaysAddToPackageJson": false
}
}
}
}
}
2 changes: 1 addition & 1 deletion packages/detox/src/executors/build/schema.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// options from https://github.com/wix/Detox/blob/master/docs/APIRef.DetoxCLI.md#build
// options from https://github.com/wix/Detox/blob/master/docs/cli/build.md
export interface DetoxBuildOptions {
detoxConfiguration?: string;
configPath?: string;
Expand Down
4 changes: 2 additions & 2 deletions packages/detox/src/utils/versions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const nxVersion = require('../../package.json').version;

export const detoxVersion = '^20.9.0';
export const detoxVersion = '^20.11.1';
export const testingLibraryJestDom = '5.16.5';
export const configPluginsDetoxVersion = '~5.0.1'; // only required for expo
export const configPluginsDetoxVersion = '~6.0.0'; // only required for expo
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const customConfig = {
resolver: {
assetExts: assetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'],
blockList: exclusionList([/^(?!.*node_modules).*\/dist\/.*/]),
blockList: exclusionList([/^(?!.*node_modules).*\\/dist\\/.*/]),
unstable_enableSymlinks: true,
unstable_enablePackageExports: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const customConfig = {
resolver: {
assetExts: assetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'],
blockList: exclusionList([/^(?!.*node_modules).*\/dist\/.*/]),
blockList: exclusionList([/^(?!.*node_modules).*\\/dist\\/.*/]),
unstable_enableSymlinks: true,
unstable_enablePackageExports: true,
},
Expand Down

1 comment on commit d65736e

@vercel
Copy link

@vercel vercel bot commented on d65736e Jul 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx.dev
nx-five.vercel.app

Please sign in to comment.