You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seeing an error thrown by npm itself if I create two apps with manual npm install steps in the same mocha instance:
constexpect=require('chai').expect;constAddonTestApp=require('ember-cli-addon-tests').AddonTestApp;describe('creating two apps',function(){this.timeout(300000);it('creates first app',asyncfunction(){letapp=newAddonTestApp();awaitapp.create('default',{noFixtures: true,skipNpm: true,});awaitapp.run('npm','install');});it('creates second app with different dependencies',asyncfunction(){letapp=newAddonTestApp();awaitapp.create('default',{noFixtures: true,skipNpm: true,});awaitapp.run('npm','install');});});
creating two apps
✓ creates first app (47737ms)
1) creates second app with different dependencies
npm WARN
deprecated [email protected]: Please replace with usage of fs.existsSync
npm
ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm
ERR! <https://npm.community>
1 passing (3m)
1 failing
1) creating two apps
creates second app with different dependencies:
Error: the object {
"code": 1
"errors": [
"npm WARN "
"deprecated [email protected]: Please replace with usage of fs.existsSync\n"
"npm"
" ERR! cb() never called!\n"
"\n"
"npm ERR! This is an error with npm itself. Please report this error at:\nnpm"
" ERR! <https://npm.community>\n"
]
"output": []
"signal": [null]
} was thrown, throw an Error :)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
$ ember -v
ember-cli: 3.13.1
node: 8.16.1
os: linux x64
$ npm -v
6.4.1
Please note that this only happening if app.run('npm', 'install') is called twice. It seems to work fine if installed as part of app.create('default', { noFixtures: true }) and not calling app.run('npm', 'install') manually.
A work-a-round is splitting it up into multiple files and running a mocha instance per file.
Seeing an error thrown by npm itself if I create two apps with manual
npm install
steps in the same mocha instance:Please note that this only happening if
app.run('npm', 'install')
is called twice. It seems to work fine if installed as part ofapp.create('default', { noFixtures: true })
and not callingapp.run('npm', 'install')
manually.A work-a-round is splitting it up into multiple files and running a mocha instance per file.
I've faced this in adopted-ember-addons/ember-cli-content-security-policy#113.
The text was updated successfully, but these errors were encountered: