-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PWA-2400] Update packages and dependencies #3611
Changes from all commits
103b47c
0332dd8
7396d68
f23ab69
c27907e
f628039
e4674c9
9818dba
ae65b25
bbed449
647ee62
f9760e8
ac5ed03
64e7abb
975dc4b
0d97355
90b2028
34895f7
19255bc
8c4b43f
02d3212
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,9 +44,20 @@ test('is a yargs builder', async () => { | |
); | ||
|
||
expect(output).toMatch('Create a PWA'); | ||
}); | ||
|
||
test('throws when directory argument is missing', async () => { | ||
const parser = yargs | ||
.command({ ...createProjectCliBuilder, handler: jest.fn() }) | ||
.help(); | ||
|
||
// throws because it wants a positional argument--just checking | ||
expect(() => createProjectCliBuilder.builder(yargs)).toThrow('positional'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually not sure about this one. Tests are failing if we keep this. Any feedback is appreciated. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, the test only fails on this branch. If I recall, if was something about There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jeremycharron did you check yargs release notes for this particular exception not throwing? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pedrochiossi There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jeremycharron I don't think this is related, I would look for something on builder function, but if seems it's not on their release notes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tjwiebell has written a new test. I will get in touch with him so we can replace this one. |
||
const output = await new Promise(resolve => | ||
parser.parse('create-project', err => resolve(err)) | ||
); | ||
|
||
expect(output).toMatchInlineSnapshot( | ||
`[YError: Not enough non-option arguments: got 0, need at least 1]` | ||
); | ||
}); | ||
|
||
test('locates builtin package', async () => { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ import { createTestInstance } from '@magento/peregrine'; | |
import Options from '../options'; | ||
|
||
jest.mock('../../../classify'); | ||
jest.mock('uuid/v4', () => () => '00000000-0000-0000-0000-000000000000'); | ||
jest.mock('uuid', () => () => '00000000-0000-0000-0000-000000000000'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see many such mock updates, is this a code change from the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, unfortunately |
||
|
||
const defaultProps = { | ||
options: [ | ||
|
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.
Did they happen to change the syntax for the
CopyPlugin
?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.
Yes, we need to have an object now. Ref : https://github.com/webpack-contrib/copy-webpack-plugin/releases/tag/v6.0.0