Skip to content

Commit 2cced43

Browse files
authored
chore(dev-deps): bump jest to v29 (#825)
1 parent 79c9885 commit 2cced43

File tree

5 files changed

+402
-418
lines changed

5 files changed

+402
-418
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"@types/debug": "4.1.7",
5757
"@types/express": "4.17.13",
5858
"@types/is-glob": "4.0.2",
59-
"@types/jest": "28.1.7",
59+
"@types/jest": "29.0.0",
6060
"@types/micromatch": "4.0.2",
6161
"@types/node": "17.0.25",
6262
"@types/supertest": "2.0.12",
@@ -72,13 +72,13 @@
7272
"express": "4.17.3",
7373
"get-port": "5.1.1",
7474
"husky": "7.0.4",
75-
"jest": "28.1.3",
75+
"jest": "29.0.2",
7676
"lint-staged": "12.3.8",
7777
"mockttp": "2.7.0",
7878
"open": "8.4.0",
7979
"prettier": "2.6.2",
8080
"supertest": "6.2.2",
81-
"ts-jest": "28.0.8",
81+
"ts-jest": "29.0.0",
8282
"typescript": "4.6.3",
8383
"ws": "8.5.0"
8484
},

test/legacy/http-proxy-middleware.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('legacyCreateProxyMiddleware()', () => {
1313
expect(() => legacyCreateProxyMiddleware(`http://localhost:${mockServer.port}`))
1414
.toThrowErrorMatchingInlineSnapshot(`
1515
"Shorthand syntax is removed from legacyCreateProxyMiddleware().
16-
Please use \\"legacyCreateProxyMiddleware({ target: 'http://www.example.org' })\\" instead."
16+
Please use "legacyCreateProxyMiddleware({ target: 'http://www.example.org' })" instead."
1717
`);
1818
});
1919

test/unit/get-plugins.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('getPlugins', () => {
1515

1616
expect(plugins).toHaveLength(4);
1717
expect(plugins.map((plugin) => plugin.name)).toMatchInlineSnapshot(`
18-
Array [
18+
[
1919
"debugProxyErrorsPlugin",
2020
"proxyEventsPlugin",
2121
"loggerPlugin",
@@ -42,7 +42,7 @@ describe('getPlugins', () => {
4242

4343
expect(plugins).toHaveLength(5);
4444
expect(plugins.map((plugin) => plugin.name)).toMatchInlineSnapshot(`
45-
Array [
45+
[
4646
"debugProxyErrorsPlugin",
4747
"proxyEventsPlugin",
4848
"loggerPlugin",
@@ -63,7 +63,7 @@ describe('getPlugins', () => {
6363

6464
expect(plugins).toHaveLength(1);
6565
expect(plugins.map((plugin) => plugin.name)).toMatchInlineSnapshot(`
66-
Array [
66+
[
6767
"myPlugin",
6868
]
6969
`);
@@ -77,7 +77,7 @@ describe('getPlugins', () => {
7777

7878
expect(plugins).toHaveLength(4);
7979
expect(plugins.map((plugin) => plugin.name)).toMatchInlineSnapshot(`
80-
Array [
80+
[
8181
"debugProxyErrorsPlugin",
8282
"errorResponsePlugin",
8383
"loggerPlugin",
@@ -98,7 +98,7 @@ describe('getPlugins', () => {
9898

9999
expect(plugins).toHaveLength(3);
100100
expect(plugins.map((plugin) => plugin.name)).toMatchInlineSnapshot(`
101-
Array [
101+
[
102102
"debugProxyErrorsPlugin",
103103
"proxyEventsPlugin",
104104
"loggerPlugin",

test/unit/logger.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('Logger', () => {
99
it('should return noop logger when not configured in Options', () => {
1010
const logger = getLogger({});
1111
expect(Object.keys(logger)).toMatchInlineSnapshot(`
12-
Array [
12+
[
1313
"info",
1414
"warn",
1515
"error",

0 commit comments

Comments
 (0)