Skip to content

Commit

Permalink
chore(dev-deps): bump jest to v29 (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
chimurai committed Sep 9, 2022
1 parent 79c9885 commit 2cced43
Show file tree
Hide file tree
Showing 5 changed files with 402 additions and 418 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@types/debug": "4.1.7",
"@types/express": "4.17.13",
"@types/is-glob": "4.0.2",
"@types/jest": "28.1.7",
"@types/jest": "29.0.0",
"@types/micromatch": "4.0.2",
"@types/node": "17.0.25",
"@types/supertest": "2.0.12",
Expand All @@ -72,13 +72,13 @@
"express": "4.17.3",
"get-port": "5.1.1",
"husky": "7.0.4",
"jest": "28.1.3",
"jest": "29.0.2",
"lint-staged": "12.3.8",
"mockttp": "2.7.0",
"open": "8.4.0",
"prettier": "2.6.2",
"supertest": "6.2.2",
"ts-jest": "28.0.8",
"ts-jest": "29.0.0",
"typescript": "4.6.3",
"ws": "8.5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion test/legacy/http-proxy-middleware.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('legacyCreateProxyMiddleware()', () => {
expect(() => legacyCreateProxyMiddleware(`http://localhost:${mockServer.port}`))
.toThrowErrorMatchingInlineSnapshot(`
"Shorthand syntax is removed from legacyCreateProxyMiddleware().
Please use \\"legacyCreateProxyMiddleware({ target: 'http://www.example.org' })\\" instead."
Please use "legacyCreateProxyMiddleware({ target: 'http://www.example.org' })" instead."
`);
});

Expand Down
10 changes: 5 additions & 5 deletions test/unit/get-plugins.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('getPlugins', () => {

expect(plugins).toHaveLength(4);
expect(plugins.map((plugin) => plugin.name)).toMatchInlineSnapshot(`
Array [
[
"debugProxyErrorsPlugin",
"proxyEventsPlugin",
"loggerPlugin",
Expand All @@ -42,7 +42,7 @@ describe('getPlugins', () => {

expect(plugins).toHaveLength(5);
expect(plugins.map((plugin) => plugin.name)).toMatchInlineSnapshot(`
Array [
[
"debugProxyErrorsPlugin",
"proxyEventsPlugin",
"loggerPlugin",
Expand All @@ -63,7 +63,7 @@ describe('getPlugins', () => {

expect(plugins).toHaveLength(1);
expect(plugins.map((plugin) => plugin.name)).toMatchInlineSnapshot(`
Array [
[
"myPlugin",
]
`);
Expand All @@ -77,7 +77,7 @@ describe('getPlugins', () => {

expect(plugins).toHaveLength(4);
expect(plugins.map((plugin) => plugin.name)).toMatchInlineSnapshot(`
Array [
[
"debugProxyErrorsPlugin",
"errorResponsePlugin",
"loggerPlugin",
Expand All @@ -98,7 +98,7 @@ describe('getPlugins', () => {

expect(plugins).toHaveLength(3);
expect(plugins.map((plugin) => plugin.name)).toMatchInlineSnapshot(`
Array [
[
"debugProxyErrorsPlugin",
"proxyEventsPlugin",
"loggerPlugin",
Expand Down
2 changes: 1 addition & 1 deletion test/unit/logger.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('Logger', () => {
it('should return noop logger when not configured in Options', () => {
const logger = getLogger({});
expect(Object.keys(logger)).toMatchInlineSnapshot(`
Array [
[
"info",
"warn",
"error",
Expand Down
Loading

0 comments on commit 2cced43

Please sign in to comment.