Skip to content

Commit c0b59f1

Browse files
adrians5jclaude
andauthored
refactor(testing): rename @webiny/api-testing to @webiny/api-core-testing (#5400)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 03e9e89 commit c0b59f1

83 files changed

Lines changed: 2041 additions & 5885 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/api-aco/__tests__/defaultPermissionsMerger.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect } from "vitest";
2-
import { createIdentity } from "@webiny/api-testing";
2+
import { createIdentity } from "@webiny/api-core-testing";
33
import { FolderPermission } from "~/flp/flp.types";
44
import { DefaultPermissionsMerger } from "~/features/flp/FolderLevelPermissions/useCases/GetDefaultPermissions/DefaultPermissionsMerger.js";
55
import type { SecurityPermission } from "@webiny/api-core/types/security.js";

packages/api-aco/__tests__/utils/useGraphQlHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { DecryptedWcpProjectLicense } from "@webiny/wcp/types";
99
import type { CmsModel } from "@webiny/api-headless-cms/types";
1010
import { ContextPlugin } from "@webiny/api";
1111
import { AcoFeature } from "~/index";
12-
import { createIdentity } from "@webiny/api-testing";
12+
import { createIdentity } from "@webiny/api-core-testing";
1313
import { createAcoSdk } from "~tests/utils/createAcoSdk.js";
1414

1515
import {

packages/api-aco/__tests__/utils/useHandler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import type { HeadlessCmsStorageOperations } from "@webiny/api-headless-cms/type
1414
import type { ApiCoreStorageOperations } from "@webiny/api-core/types/core.js";
1515
import type { SecurityPermission } from "@webiny/api-core/types/security.js";
1616
import { AcoFeature } from "~/index";
17-
import { createIdentity } from "@webiny/api-testing";
17+
import { createIdentity } from "@webiny/api-core-testing";
1818
import { processLegacyPlugins } from "./bridgeLegacyPlugins";
19-
import { TestIdentity, TestAuthenticator } from "@webiny/api-testing";
20-
import { TestPermissions, TestAuthorizer } from "@webiny/api-testing";
19+
import { TestIdentity, TestAuthenticator } from "@webiny/api-core-testing";
20+
import { TestPermissions, TestAuthorizer } from "@webiny/api-core-testing";
2121
import type { AcoContext } from "~/types";
2222

2323
export interface UseHandlerParams {

packages/api-aco/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"lodash": "^4.18.1"
3838
},
3939
"devDependencies": {
40+
"@webiny/api-core-testing": "0.0.0",
4041
"@webiny/api-file-manager": "0.0.0",
41-
"@webiny/api-testing": "0.0.0",
4242
"@webiny/build-tools": "0.0.0",
4343
"@webiny/handler-aws": "0.0.0",
4444
"@webiny/plugins": "0.0.0",

packages/api-aco/tsconfig.build.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
{ "path": "../shared-aco/tsconfig.build.json" },
1515
{ "path": "../utils/tsconfig.build.json" },
1616
{ "path": "../validation/tsconfig.build.json" },
17+
{ "path": "../api-core-testing/tsconfig.build.json" },
1718
{ "path": "../api-file-manager/tsconfig.build.json" },
18-
{ "path": "../api-testing/tsconfig.build.json" },
1919
{ "path": "../handler-aws/tsconfig.build.json" },
2020
{ "path": "../plugins/tsconfig.build.json" },
2121
{ "path": "../wcp/tsconfig.build.json" }
@@ -51,10 +51,10 @@
5151
"@webiny/utils": ["../utils/src"],
5252
"@webiny/validation/*": ["../validation/src/*"],
5353
"@webiny/validation": ["../validation/src"],
54+
"@webiny/api-core-testing/*": ["../api-core-testing/src/*"],
55+
"@webiny/api-core-testing": ["../api-core-testing/src"],
5456
"@webiny/api-file-manager/*": ["../api-file-manager/src/*"],
5557
"@webiny/api-file-manager": ["../api-file-manager/src"],
56-
"@webiny/api-testing/*": ["../api-testing/src/*"],
57-
"@webiny/api-testing": ["../api-testing/src"],
5858
"@webiny/handler-aws/*": ["../handler-aws/src/*"],
5959
"@webiny/handler-aws": ["../handler-aws/src"],
6060
"@webiny/plugins/*": ["../plugins/src/*"],

packages/api-aco/tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
{ "path": "../shared-aco" },
1515
{ "path": "../utils" },
1616
{ "path": "../validation" },
17+
{ "path": "../api-core-testing" },
1718
{ "path": "../api-file-manager" },
18-
{ "path": "../api-testing" },
1919
{ "path": "../handler-aws" },
2020
{ "path": "../plugins" },
2121
{ "path": "../wcp" }
@@ -51,10 +51,10 @@
5151
"@webiny/utils": ["../utils/src"],
5252
"@webiny/validation/*": ["../validation/src/*"],
5353
"@webiny/validation": ["../validation/src"],
54+
"@webiny/api-core-testing/*": ["../api-core-testing/src/*"],
55+
"@webiny/api-core-testing": ["../api-core-testing/src"],
5456
"@webiny/api-file-manager/*": ["../api-file-manager/src/*"],
5557
"@webiny/api-file-manager": ["../api-file-manager/src"],
56-
"@webiny/api-testing/*": ["../api-testing/src/*"],
57-
"@webiny/api-testing": ["../api-testing/src"],
5858
"@webiny/handler-aws/*": ["../handler-aws/src/*"],
5959
"@webiny/handler-aws": ["../handler-aws/src"],
6060
"@webiny/plugins/*": ["../plugins/src/*"],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@webiny/api-testing",
2+
"name": "@webiny/api-core-testing",
33
"version": "0.0.0",
44
"type": "module",
55
"exports": {

packages/api-testing/src/handlers/AuthTriggerHandler.ts renamed to packages/api-core-testing/src/handlers/AuthTriggerHandler.ts

File renamed without changes.

packages/api-testing/src/handlers/RootTenantInitializer.ts renamed to packages/api-core-testing/src/handlers/RootTenantInitializer.ts

File renamed without changes.

0 commit comments

Comments
 (0)