-
Notifications
You must be signed in to change notification settings - Fork 7
Conversation
test/package.spec.ts
Outdated
fs.copySync(nestAppDir, projectDir, { recursive: true }); | ||
await Package.run([projectDir, '--skipInstall']); | ||
|
||
expect(fs.readdirSync(path.resolve(projectDir, 'deployment'))).toIncludeAllMembers(['package.json', 'package-lock.json']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my understanding this tests the default value for --include
. Shouldn't this test assert then that all files included by default are copied (i.e. package.json, package-lock.json, index.js, dist/**/*)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the default nest.js app does not have an index.js
and the dist/**
only appear after compiling (which I dont test here). That's why I implemented it this way, but I am open for improvement suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Is there something like toIncludeAndOnlyIncludeAllMembers
? =P
No description provided.