Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi committed Jun 25, 2021
1 parent 140bdd2 commit f0a9f28
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 23 deletions.
19 changes: 1 addition & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,6 @@ jobs:
name: E2E
command: yarn e2e
no_output_timeout: 30m
end-to-end-tests-detox:
parameters:
os:
type: string
default: 'macos'
executor: << parameters.os >>
steps:
- setup:
os: << parameters.os >>
- run:
name: Build
command: yarn build
no_output_timeout: 30m
- run:
name: E2E
command: yarn detox-e2e
no_output_timeout: 30m

workflows:
build:
Expand All @@ -123,7 +106,7 @@ workflows:
matrix:
parameters:
os: ['macos']
- end-to-end-tests-detox:
- end-to-end-tests:
name: 'end-to-end-tests-android'
matrix:
parameters:
Expand Down
2 changes: 1 addition & 1 deletion e2e/detox-e2e/tests/android.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ describe('Detox Android', () => {
expect(androidTestResult.stdout).toContain(
'Running target "test-android" succeeded'
);
});
}, 1200000);
});
8 changes: 4 additions & 4 deletions e2e/detox-e2e/tests/detox.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { readJsonFile } from '@nrwl/devkit';
import {
checkFilesExist,
runNxCommandAsync,
uniq,
readFile,
} from '@nrwl/nx-plugin/testing';
import { join } from 'path';

Expand All @@ -14,11 +14,11 @@ describe('Detox', () => {
`generate @nrwl/react-native:app ${myapp} --e2eTestRunner=detox --linter=eslint`
);

// Making sure the package.json file contains the Cypress dependency
const packageJson = readJsonFile(join('package.json'));
// Making sure the package.json file contains the detox dependency
const packageJson = JSON.parse(readFile(join('package.json')));
expect(packageJson.devDependencies['detox']).toBeTruthy();

// Making sure the cypress folders & files are created
// Making sure the detox e2e folders & files are created
checkFilesExist(`apps/${myapp}-e2e/.detoxrc.json`);
checkFilesExist(`apps/${myapp}-e2e/tsconfig.e2e.json`);
checkFilesExist(`apps/${myapp}-e2e/test-setup.ts`);
Expand Down

0 comments on commit f0a9f28

Please sign in to comment.