Skip to content

Commit 3403eb4

Browse files
committed
adjust dirname
1 parent 230b89f commit 3403eb4

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

__e2e__/config.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ beforeEach(() => {
4949

5050
// Initialise React Native project
5151
runCLI(DIR, ['init', 'TestProject', '--install-pods']);
52-
5352
// Link CLI to the project
54-
spawnScript('yarn', ['link', __dirname, '--all'], {
53+
spawnScript('yarn', ['link', '.', '--all'], {
5554
cwd: path.join(DIR, 'TestProject'),
5655
});
5756
});

__e2e__/root.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ beforeAll(() => {
1919
runCLI(DIR, ['init', 'TestProject', `--pm`, 'npm', `--install-pods`]);
2020

2121
// Link CLI to the project
22-
spawnScript('yarn', ['link', __dirname, '--all'], {
22+
spawnScript('yarn', ['link', '.', '--all'], {
2323
cwd: path.join(DIR, 'TestProject'),
2424
});
2525
});

0 commit comments

Comments
 (0)