Skip to content

Commit 2e68327

Browse files
authored
chore: update jest (#356)
1 parent fc3213f commit 2e68327

File tree

3 files changed

+492
-458
lines changed

3 files changed

+492
-458
lines changed

__snapshots__/test.js.snap

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,123 +1,123 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`filter option should exclude some files 1`] = `
4-
Object {
5-
"css": Array [],
6-
"js": Array [],
4+
{
5+
"css": [],
6+
"js": [],
77
}
88
`;
99

1010
exports[`filter option should include some files 1`] = `
11-
Object {
12-
"css": Array [],
13-
"js": Array [
11+
{
12+
"css": [],
13+
"js": [
1414
"vendor/my-file.js",
1515
],
1616
}
1717
`;
1818

1919
exports[`filter option should include some files with string option 1`] = `
20-
Object {
21-
"css": Array [],
22-
"js": Array [
20+
{
21+
"css": [],
22+
"js": [
2323
"vendor/my-file.js",
2424
],
2525
}
2626
`;
2727

2828
exports[`should add file missing "/" to public path 1`] = `
29-
Object {
30-
"css": Array [],
31-
"js": Array [
29+
{
30+
"css": [],
31+
"js": [
3232
"vendor/my-file.js",
3333
],
3434
}
3535
`;
3636

3737
exports[`should add file using compilation's publicPath 1`] = `
38-
Object {
39-
"css": Array [],
40-
"js": Array [
38+
{
39+
"css": [],
40+
"js": [
4141
"vendor/my-file.js",
4242
],
4343
}
4444
`;
4545

4646
exports[`should add sourcemap and gzipped files to compilation 1`] = `
47-
Object {
48-
"css": Array [],
49-
"js": Array [
47+
{
48+
"css": [],
49+
"js": [
5050
"my-file.js",
5151
],
5252
}
5353
`;
5454

5555
exports[`should add to css if \`typeOfAsset\` is css 1`] = `
56-
Object {
57-
"css": Array [
56+
{
57+
"css": [
5858
"my-file.css",
5959
],
60-
"js": Array [],
60+
"js": [],
6161
}
6262
`;
6363

6464
exports[`should include hash of file content if option is set 1`] = `
65-
Object {
66-
"css": Array [],
67-
"js": Array [
65+
{
66+
"css": [],
67+
"js": [
6868
"my-file.js?5329c141291f07ab06c6",
6969
],
7070
}
7171
`;
7272

7373
exports[`should invoke callback on error 1`] = `
74-
Array [
74+
[
7575
[Error: No filepath defined],
7676
[Error: No filepath defined],
7777
]
7878
`;
7979

8080
exports[`should reject on error 1`] = `
81-
Array [
81+
[
8282
[Error: No filepath defined],
8383
[Error: No filepath defined],
8484
]
8585
`;
8686

8787
exports[`should replace compilation assets key if \`outputPath\` is set 1`] = `
88-
Object {
89-
"css": Array [],
90-
"js": Array [
88+
{
89+
"css": [],
90+
"js": [
9191
"some-file.js",
9292
],
9393
}
9494
`;
9595

9696
exports[`should skip adding sourcemap and gzipped files to compilation if set to false 1`] = `
97-
Object {
98-
"css": Array [],
99-
"js": Array [
97+
{
98+
"css": [],
99+
"js": [
100100
"my-file.js",
101101
],
102102
}
103103
`;
104104

105105
exports[`should use the hash from HtmlWebpackPlugin if option is set 1`] = `
106-
Object {
107-
"css": Array [],
108-
"js": Array [
106+
{
107+
"css": [],
108+
"js": [
109109
"my-file.js?testHash",
110110
],
111111
}
112112
`;
113113

114114
exports[`should used passed in publicPath 1`] = `
115-
Object {
116-
"css": Array [],
117-
"js": Array [
115+
{
116+
"css": [],
117+
"js": [
118118
"pp/my-file.js",
119119
],
120120
}
121121
`;
122122

123-
exports[`throws of both filepath and glob is defined 1`] = `"Both filepath and glob defined in {\\"filepath\\":\\"my-file.js\\",\\"glob\\":\\"my-file.js\\"} - only use one of them"`;
123+
exports[`throws of both filepath and glob is defined 1`] = `"Both filepath and glob defined in {"filepath":"my-file.js","glob":"my-file.js"} - only use one of them"`;

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"express": "^4.17.1",
4646
"html-webpack-plugin": "^5.2.0",
4747
"husky": "^7.0.0",
48-
"jest": "^28.0.0",
49-
"jest-watch-typeahead": "^1.0.0",
48+
"jest": "^29.5.0",
49+
"jest-watch-typeahead": "^2.2.2",
5050
"licensor": "^4.0.0",
5151
"lint-staged": "^12.3.5",
5252
"pinst": "^3.0.0",

0 commit comments

Comments
 (0)