-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ const path = require('path'); | |
const coffee = require('coffee'); | ||
const mm = require('mm'); | ||
const fs = require('fs'); | ||
const copyDir = require('copy-dir'); | ||
const cpy = require('cpy'); | ||
const rimraf = require('mz-modules/rimraf'); | ||
const exec = require('mz/child_process').exec; | ||
const os = require('os'); | ||
|
@@ -214,7 +214,7 @@ describe('test/ts.test.js', () => { | |
await exec('npx cnpm install', { cwd }); | ||
|
||
// copy egg to node_modules | ||
copyDir.sync( | ||
await cpy( | ||
path.join(__dirname, './fixtures/example-ts-cluster/node_modules/egg'), | ||
path.join(cwd, './node_modules/egg') | ||
); | ||
|
@@ -234,7 +234,7 @@ describe('test/ts.test.js', () => { | |
await exec('npx cnpm install [email protected] --no-save', { cwd }); | ||
|
||
// copy egg to node_modules | ||
copyDir.sync( | ||
await cpy( | ||
path.join(__dirname, './fixtures/example-ts-cluster/node_modules/egg'), | ||
path.join(cwd, './node_modules/egg') | ||
); | ||
|
@@ -256,7 +256,7 @@ describe('test/ts.test.js', () => { | |
await exec('npx cnpm install [email protected] --no-save', { cwd }); | ||
|
||
// copy egg to node_modules | ||
copyDir.sync( | ||
await cpy( | ||
path.join(__dirname, './fixtures/example-ts-cluster/node_modules/egg'), | ||
path.join(cwd, './node_modules/egg') | ||
); | ||
|
@@ -312,7 +312,7 @@ describe('test/ts.test.js', () => { | |
await exec('npx cnpm install', { cwd }); | ||
|
||
// copy egg to node_modules | ||
copyDir.sync( | ||
await cpy( | ||
path.join(__dirname, './fixtures/example-ts-cluster/node_modules/egg'), | ||
path.join(cwd, './node_modules/egg') | ||
); | ||
|