Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.

Conversation

@florian-richter
Copy link
Contributor

No description provided.

@florian-richter florian-richter marked this pull request as ready for review January 7, 2020 15:47
fs.copySync(nestAppDir, projectDir, { recursive: true });
await Package.run([projectDir, '--skipInstall']);

expect(fs.readdirSync(path.resolve(projectDir, 'deployment'))).toIncludeAllMembers(['package.json', 'package-lock.json']);
Copy link
Contributor

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/**/*)?

Copy link
Contributor Author

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.

Copy link
Contributor

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

@florian-richter florian-richter merged commit a2f080a into master Jan 8, 2020
@florian-richter florian-richter deleted the package-tests branch January 8, 2020 15:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants