chore(deps-dev): bump jest-cli from 28.1.3 to 29.4.1 (#4805)

* chore(deps-dev): bump jest-cli from 28.1.3 to 29.4.1

Bumps [jest-cli](https://github.com/facebook/jest/tree/HEAD/packages/jest-cli) from 28.1.3 to 29.4.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v29.4.1/packages/jest-cli)

---
updated-dependencies:
- dependency-name: jest-cli
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Snapshots

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
dependabot[bot]
2023-01-30 20:17:09 -08:00
committed by GitHub
parent d70aefe9fa
commit 8f166ca775
11 changed files with 556 additions and 489 deletions

View File

@@ -2,10 +2,7 @@
"projects": [
{
"displayName": "server",
"verbose": false,
"roots": [
"<rootDir>/server"
],
"roots": ["<rootDir>/server"],
"moduleNameMapper": {
"^@server/(.*)$": "<rootDir>/server/$1",
"^@shared/(.*)$": "<rootDir>/shared/$1"
@@ -14,33 +11,22 @@
"<rootDir>/__mocks__/console.js",
"<rootDir>/server/test/env.ts"
],
"setupFilesAfterEnv": [
"<rootDir>/server/test/setup.ts"
],
"setupFilesAfterEnv": ["<rootDir>/server/test/setup.ts"],
"testEnvironment": "node",
"runner": "@getoutline/jest-runner-serial"
},
{
"displayName": "app",
"verbose": false,
"roots": [
"<rootDir>/app"
],
"roots": ["<rootDir>/app"],
"moduleNameMapper": {
"^~/(.*)$": "<rootDir>/app/$1",
"^@shared/(.*)$": "<rootDir>/shared/$1",
"^.*[.](gif|ttf|eot|svg)$": "<rootDir>/__test__/fileMock.js",
"^uuid$": "<rootDir>/node_modules/uuid/dist/index.js"
},
"modulePaths": [
"<rootDir>/app"
],
"setupFiles": [
"<rootDir>/__mocks__/window.js"
],
"setupFilesAfterEnv": [
"<rootDir>/app/test/setup.ts"
],
"modulePaths": ["<rootDir>/app"],
"setupFiles": ["<rootDir>/__mocks__/window.js"],
"setupFilesAfterEnv": ["<rootDir>/app/test/setup.ts"],
"testEnvironment": "jsdom",
"testEnvironmentOptions": {
"url": "http://localhost"
@@ -48,37 +34,25 @@
},
{
"displayName": "shared-node",
"verbose": false,
"roots": [
"<rootDir>/shared"
],
"roots": ["<rootDir>/shared"],
"moduleNameMapper": {
"^@server/(.*)$": "<rootDir>/server/$1",
"^@shared/(.*)$": "<rootDir>/shared/$1"
},
"setupFiles": [
"<rootDir>/__mocks__/console.js"
],
"setupFilesAfterEnv": [
"<rootDir>/shared/test/setup.ts"
],
"setupFiles": ["<rootDir>/__mocks__/console.js"],
"setupFilesAfterEnv": ["<rootDir>/shared/test/setup.ts"],
"testEnvironment": "node"
},
{
"displayName": "shared-jsdom",
"verbose": false,
"roots": [
"<rootDir>/shared"
],
"roots": ["<rootDir>/shared"],
"moduleNameMapper": {
"^~/(.*)$": "<rootDir>/app/$1",
"^@shared/(.*)$": "<rootDir>/shared/$1",
"^.*[.](gif|ttf|eot|svg)$": "<rootDir>/__test__/fileMock.js",
"^uuid$": "<rootDir>/node_modules/uuid/dist/index.js"
},
"setupFiles": [
"<rootDir>/__mocks__/window.js"
],
"setupFiles": ["<rootDir>/__mocks__/window.js"],
"testEnvironment": "jsdom",
"testEnvironmentOptions": {
"url": "http://localhost"

View File

@@ -325,7 +325,7 @@
"html-webpack-plugin": "4.5.2",
"husky": "^8.0.2",
"i18next-parser": "^7.1.0",
"jest-cli": "^28.1.3",
"jest-cli": "^29.4.1",
"jest-environment-jsdom": "^28.1.3",
"jest-fetch-mock": "^3.0.3",
"koa-webpack-dev-middleware": "^1.4.5",

View File

@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`presents a user 1`] = `
Object {
{
"avatarUrl": null,
"color": "#FF5C80",
"createdAt": undefined,
@@ -16,7 +16,7 @@ Object {
`;
exports[`presents a user without slack data 1`] = `
Object {
{
"avatarUrl": null,
"color": "#FF5C80",
"createdAt": undefined,

View File

@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`#collections.add_group should require group in team 1`] = `
Object {
{
"error": "authorization_error",
"message": "Authorization error",
"ok": false,
@@ -10,7 +10,7 @@ Object {
`;
exports[`#collections.add_user should not allow add self 1`] = `
Object {
{
"error": "authorization_error",
"message": "Authorization error",
"ok": false,
@@ -19,7 +19,7 @@ Object {
`;
exports[`#collections.add_user should require user in team 1`] = `
Object {
{
"error": "authorization_error",
"message": "Authorization error",
"ok": false,
@@ -28,7 +28,7 @@ Object {
`;
exports[`#collections.create should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -37,7 +37,7 @@ Object {
`;
exports[`#collections.delete should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -46,7 +46,7 @@ Object {
`;
exports[`#collections.export should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -55,7 +55,7 @@ Object {
`;
exports[`#collections.export_all should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -64,7 +64,7 @@ Object {
`;
exports[`#collections.group_memberships should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -73,7 +73,7 @@ Object {
`;
exports[`#collections.import should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -82,7 +82,7 @@ Object {
`;
exports[`#collections.info should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -91,7 +91,7 @@ Object {
`;
exports[`#collections.list should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -100,7 +100,7 @@ Object {
`;
exports[`#collections.memberships should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -109,7 +109,7 @@ Object {
`;
exports[`#collections.move should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -118,7 +118,7 @@ Object {
`;
exports[`#collections.remove_group should require group in team 1`] = `
Object {
{
"error": "authorization_error",
"message": "Authorization error",
"ok": false,
@@ -127,7 +127,7 @@ Object {
`;
exports[`#collections.remove_user should require user in team 1`] = `
Object {
{
"error": "authorization_error",
"message": "Authorization error",
"ok": false,
@@ -136,7 +136,7 @@ Object {
`;
exports[`#collections.update should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,

View File

@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`#groups.add_user should require admin 1`] = `
Object {
{
"error": "admin_required",
"message": "An admin role is required to access this resource",
"ok": false,
@@ -10,7 +10,7 @@ Object {
`;
exports[`#groups.add_user should require user in team 1`] = `
Object {
{
"error": "authorization_error",
"message": "Authorization error",
"ok": false,
@@ -19,7 +19,7 @@ Object {
`;
exports[`#groups.delete should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -28,7 +28,7 @@ Object {
`;
exports[`#groups.info should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -37,7 +37,7 @@ Object {
`;
exports[`#groups.list should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -46,7 +46,7 @@ Object {
`;
exports[`#groups.memberships should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -55,7 +55,7 @@ Object {
`;
exports[`#groups.remove_user should require admin 1`] = `
Object {
{
"error": "admin_required",
"message": "An admin role is required to access this resource",
"ok": false,
@@ -64,7 +64,7 @@ Object {
`;
exports[`#groups.remove_user should require user in team 1`] = `
Object {
{
"error": "authorization_error",
"message": "Authorization error",
"ok": false,
@@ -73,7 +73,7 @@ Object {
`;
exports[`#groups.update should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -82,7 +82,7 @@ Object {
`;
exports[`#groups.update when user is admin fails with validation error when name already taken 1`] = `
Object {
{
"error": "validation_error",
"message": "The name of this group is already in use (isUniqueNameInTeam)",
"ok": false,

View File

@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`#shares.create should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -10,7 +10,7 @@ Object {
`;
exports[`#shares.list should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -19,7 +19,7 @@ Object {
`;
exports[`#shares.revoke should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -28,7 +28,7 @@ Object {
`;
exports[`#shares.update should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -37,7 +37,7 @@ Object {
`;
exports[`should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,

View File

@@ -1,8 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`#users.activate should activate a suspended user 1`] = `
Object {
"data": Object {
{
"data": {
"avatarUrl": null,
"color": "#e600e0",
"createdAt": "2018-01-02T00:00:00.000Z",
@@ -18,9 +18,9 @@ Object {
"updatedAt": "2018-01-02T00:00:00.000Z",
},
"ok": true,
"policies": Array [
Object {
"abilities": Object {
"policies": [
{
"abilities": {
"activate": true,
"delete": true,
"demote": true,
@@ -39,7 +39,7 @@ Object {
`;
exports[`#users.activate should require admin 1`] = `
Object {
{
"error": "admin_required",
"message": "An admin role is required to access this resource",
"ok": false,
@@ -48,7 +48,7 @@ Object {
`;
exports[`#users.delete should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -57,8 +57,8 @@ Object {
`;
exports[`#users.demote should demote an admin 1`] = `
Object {
"data": Object {
{
"data": {
"avatarUrl": null,
"color": "#e600e0",
"createdAt": "2018-01-02T00:00:00.000Z",
@@ -74,9 +74,9 @@ Object {
"updatedAt": "2018-01-02T00:00:00.000Z",
},
"ok": true,
"policies": Array [
Object {
"abilities": Object {
"policies": [
{
"abilities": {
"activate": true,
"delete": true,
"demote": true,
@@ -95,8 +95,8 @@ Object {
`;
exports[`#users.demote should demote an admin to member 1`] = `
Object {
"data": Object {
{
"data": {
"avatarUrl": null,
"color": "#e600e0",
"createdAt": "2018-01-02T00:00:00.000Z",
@@ -112,9 +112,9 @@ Object {
"updatedAt": "2018-01-02T00:00:00.000Z",
},
"ok": true,
"policies": Array [
Object {
"abilities": Object {
"policies": [
{
"abilities": {
"activate": true,
"delete": true,
"demote": true,
@@ -133,8 +133,8 @@ Object {
`;
exports[`#users.demote should demote an admin to viewer 1`] = `
Object {
"data": Object {
{
"data": {
"avatarUrl": null,
"color": "#e600e0",
"createdAt": "2018-01-02T00:00:00.000Z",
@@ -150,9 +150,9 @@ Object {
"updatedAt": "2018-01-02T00:00:00.000Z",
},
"ok": true,
"policies": Array [
Object {
"abilities": Object {
"policies": [
{
"abilities": {
"activate": true,
"delete": true,
"demote": true,
@@ -171,7 +171,7 @@ Object {
`;
exports[`#users.demote should not allow demoting self 1`] = `
Object {
{
"error": "validation_error",
"message": "Unable to demote the current user",
"ok": false,
@@ -180,7 +180,7 @@ Object {
`;
exports[`#users.demote should require admin 1`] = `
Object {
{
"error": "admin_required",
"message": "An admin role is required to access this resource",
"ok": false,
@@ -189,8 +189,8 @@ Object {
`;
exports[`#users.promote should promote a new admin 1`] = `
Object {
"data": Object {
{
"data": {
"avatarUrl": null,
"color": "#e600e0",
"createdAt": "2018-01-02T00:00:00.000Z",
@@ -206,9 +206,9 @@ Object {
"updatedAt": "2018-01-02T00:00:00.000Z",
},
"ok": true,
"policies": Array [
Object {
"abilities": Object {
"policies": [
{
"abilities": {
"activate": true,
"delete": true,
"demote": true,
@@ -227,7 +227,7 @@ Object {
`;
exports[`#users.promote should require admin 1`] = `
Object {
{
"error": "admin_required",
"message": "An admin role is required to access this resource",
"ok": false,
@@ -236,7 +236,7 @@ Object {
`;
exports[`#users.suspend should not allow suspending the user themselves 1`] = `
Object {
{
"error": "validation_error",
"message": "Unable to suspend the current user",
"ok": false,
@@ -245,7 +245,7 @@ Object {
`;
exports[`#users.suspend should require admin 1`] = `
Object {
{
"error": "admin_required",
"message": "An admin role is required to access this resource",
"ok": false,
@@ -254,8 +254,8 @@ Object {
`;
exports[`#users.suspend should suspend an user 1`] = `
Object {
"data": Object {
{
"data": {
"avatarUrl": null,
"color": "#e600e0",
"createdAt": "2018-01-02T00:00:00.000Z",
@@ -271,9 +271,9 @@ Object {
"updatedAt": "2018-01-02T00:00:00.000Z",
},
"ok": true,
"policies": Array [
Object {
"abilities": Object {
"policies": [
{
"abilities": {
"activate": true,
"delete": true,
"demote": false,
@@ -292,7 +292,7 @@ Object {
`;
exports[`#users.update should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,

View File

@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`#views.create should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -10,7 +10,7 @@ Object {
`;
exports[`#views.list should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,

View File

@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`#documents.create should error with invalid parentDocument 1`] = `
Object {
{
"error": "authorization_error",
"message": "Authorization error",
"ok": false,
@@ -10,7 +10,7 @@ Object {
`;
exports[`#documents.delete should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -19,7 +19,7 @@ Object {
`;
exports[`#documents.list should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -28,7 +28,7 @@ Object {
`;
exports[`#documents.restore should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -37,7 +37,7 @@ Object {
`;
exports[`#documents.search should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication error",
"ok": false,
@@ -46,7 +46,7 @@ Object {
`;
exports[`#documents.update should fail if document lastRevision does not match 1`] = `
Object {
{
"error": "invalid_request",
"message": "Document has changed since last revision",
"ok": false,
@@ -55,7 +55,7 @@ Object {
`;
exports[`#documents.update should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,
@@ -64,7 +64,7 @@ Object {
`;
exports[`#documents.update should require text while appending 1`] = `
Object {
{
"error": "validation_error",
"message": "text is required while appending",
"ok": false,
@@ -73,7 +73,7 @@ Object {
`;
exports[`#documents.viewed should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,

View File

@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`#events.list should require authentication 1`] = `
Object {
{
"error": "authentication_required",
"message": "Authentication required",
"ok": false,

829
yarn.lock

File diff suppressed because it is too large Load Diff