feat(detox): upgrade @config-plugins/detox to 7 (#21959)
This commit is contained in:
parent
729e0a15ce
commit
e687aad0e4
@ -14,7 +14,7 @@
|
|||||||
"port": {
|
"port": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"description": "Port to start the native Metro bundler on (does not apply to web or tunnel)",
|
"description": "Port to start the native Metro bundler on (does not apply to web or tunnel)",
|
||||||
"default": 19000,
|
"default": 4200,
|
||||||
"alias": "p"
|
"alias": "p"
|
||||||
},
|
},
|
||||||
"clear": {
|
"clear": {
|
||||||
|
|||||||
@ -108,6 +108,23 @@
|
|||||||
"alwaysAddToPackageJson": false
|
"alwaysAddToPackageJson": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"18.1.0": {
|
||||||
|
"version": "18.1.0-beta.0",
|
||||||
|
"packages": {
|
||||||
|
"detox": {
|
||||||
|
"version": "~20.18.1",
|
||||||
|
"alwaysAddToPackageJson": false
|
||||||
|
},
|
||||||
|
"@config-plugins/detox": {
|
||||||
|
"version": "~7.0.0",
|
||||||
|
"alwaysAddToPackageJson": false
|
||||||
|
},
|
||||||
|
"@testing-library/jest-dom": {
|
||||||
|
"version": "~6.4.2",
|
||||||
|
"alwaysAddToPackageJson": false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1 +1,5 @@
|
|||||||
export { createNodes, DetoxPluginOptions } from './src/plugins/plugin';
|
export {
|
||||||
|
createNodes,
|
||||||
|
createDependencies,
|
||||||
|
DetoxPluginOptions,
|
||||||
|
} from './src/plugins/plugin';
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
export const nxVersion = require('../../package.json').version;
|
export const nxVersion = require('../../package.json').version;
|
||||||
|
|
||||||
export const detoxVersion = '^20.16.0';
|
export const detoxVersion = '~20.18.1';
|
||||||
export const testingLibraryJestDom = '6.2.0';
|
export const testingLibraryJestDom = '~6.4.2';
|
||||||
export const configPluginsDetoxVersion = '~6.0.0'; // only required for expo
|
export const configPluginsDetoxVersion = '~7.0.0'; // only required for expo
|
||||||
|
|||||||
@ -1 +1,5 @@
|
|||||||
export { createNodes, ExpoPluginOptions } from './plugins/plugin';
|
export {
|
||||||
|
createNodes,
|
||||||
|
createDependencies,
|
||||||
|
ExpoPluginOptions,
|
||||||
|
} from './plugins/plugin';
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
"port": {
|
"port": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"description": "Port to start the native Metro bundler on (does not apply to web or tunnel)",
|
"description": "Port to start the native Metro bundler on (does not apply to web or tunnel)",
|
||||||
"default": 19000,
|
"default": 4200,
|
||||||
"alias": "p"
|
"alias": "p"
|
||||||
},
|
},
|
||||||
"clear": {
|
"clear": {
|
||||||
|
|||||||
@ -84,7 +84,11 @@ function serveAsync(
|
|||||||
|
|
||||||
childProcess.stdout.on('data', (data) => {
|
childProcess.stdout.on('data', (data) => {
|
||||||
process.stdout.write(data);
|
process.stdout.write(data);
|
||||||
if (data.toString().includes('Bundling complete')) {
|
if (
|
||||||
|
data
|
||||||
|
.toString()
|
||||||
|
.includes('Bundling complete' || data.toString().includes('Bundled'))
|
||||||
|
) {
|
||||||
resolve(childProcess);
|
resolve(childProcess);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -19,8 +19,8 @@ export async function addE2e(
|
|||||||
const port = hasPlugin ? 8081 : 4200;
|
const port = hasPlugin ? 8081 : 4200;
|
||||||
switch (options.e2eTestRunner) {
|
switch (options.e2eTestRunner) {
|
||||||
case 'cypress': {
|
case 'cypress': {
|
||||||
const hasNxExportPlugin = hasExpoPlugin(tree);
|
const hasNxExpoPlugin = hasExpoPlugin(tree);
|
||||||
if (!hasNxExportPlugin) {
|
if (!hasNxExpoPlugin) {
|
||||||
webStaticServeGenerator(tree, {
|
webStaticServeGenerator(tree, {
|
||||||
buildTarget: `${options.projectName}:export`,
|
buildTarget: `${options.projectName}:export`,
|
||||||
targetName: 'serve-static',
|
targetName: 'serve-static',
|
||||||
@ -50,7 +50,7 @@ export async function addE2e(
|
|||||||
devServerTarget: `${options.projectName}:serve`,
|
devServerTarget: `${options.projectName}:serve`,
|
||||||
port,
|
port,
|
||||||
baseUrl: `http://localhost:${port}`,
|
baseUrl: `http://localhost:${port}`,
|
||||||
ciWebServerCommand: hasNxExportPlugin
|
ciWebServerCommand: hasNxExpoPlugin
|
||||||
? `nx run ${options.projectName}:serve-static`
|
? `nx run ${options.projectName}:serve-static`
|
||||||
: undefined,
|
: undefined,
|
||||||
jsx: true,
|
jsx: true,
|
||||||
|
|||||||
@ -1 +1,5 @@
|
|||||||
export { createNodes, ReactNativePluginOptions } from './plugins/plugin';
|
export {
|
||||||
|
createNodes,
|
||||||
|
createDependencies,
|
||||||
|
ReactNativePluginOptions,
|
||||||
|
} from './plugins/plugin';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user