Skip to content

Conversation

@knagaitsev
Copy link
Contributor

@knagaitsev knagaitsev commented Feb 22, 2020

What kind of change does this PR introduce?
test fix

Did you add tests for your changes?
Yes

If relevant, did you update the documentation?
N/A

Summary
There were some problems with the loader-generator and plugin-generator test files which I fixed.

Does this PR introduce a breaking change?
No

Other information

Copy link
Member

@anshumanv anshumanv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We got rid of lock files since we use yarn workspaces now, please use yarn and remove the lock files.

@knagaitsev
Copy link
Contributor Author

We got rid of lock files since we use yarn workspaces now, please use yarn and remove the lock files.

fixed

anshumanv
anshumanv previously approved these changes Feb 22, 2020
Copy link
Member

@anshumanv anshumanv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

Copy link
Contributor

@wizardofhogwarts wizardofhogwarts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

jamesgeorge007
jamesgeorge007 previously approved these changes Feb 22, 2020
Copy link
Contributor

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like it's not fixed yet.

Look at the logs in the CI. I believe the assertion library doesn't work well with jest OR the assertions are not correct.

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /tmp/c12aae677bfdb92438557a5218666476c5e2f591/my-loader/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/tmp/c12aae677bfdb92438557a5218666476c5e2f591/my-loader/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2020-02-22T08_18_01_051Z-debug.log

@webpack-bot
Copy link

@Loonride Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@ematipico Please review the new changes.

@knagaitsev knagaitsev changed the title Fix loader-generator tests and update package locks Fix loader-generator and plugin-generator tests Feb 22, 2020
@webpack-bot
Copy link

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

@knagaitsev
Copy link
Contributor Author

It looks like it's not fixed yet.

Look at the logs in the CI. I believe the assertion library doesn't work well with jest OR the assertions are not correct.

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /tmp/c12aae677bfdb92438557a5218666476c5e2f591/my-loader/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/tmp/c12aae677bfdb92438557a5218666476c5e2f591/my-loader/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2020-02-22T08_18_01_051Z-debug.log

It turns out this had nothing to do with the test itself, the generators needed to be writing a package.json but were not.

@anshumanv
Copy link
Member

It turns out this had nothing to do with the test itself, the generators needed to be writing a package.json but were not.

Exactly, and the weird bit it that the tests are passing, it should fail in case it fails to write the files.

@ematipico
Copy link
Contributor

So we've found a bug! Nice!! 🙏

}
],
path.resolve(__dirname, "..", "generate-plugin"),
path.resolve(__dirname, "../../generate-plugin/templates"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this! That was my fault

@rishabh3112 rishabh3112 merged commit 6ee61b9 into webpack:next Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants