mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
refactor(core): Set up @n8n/integration-test-utils package (#15098)
This commit is contained in:
@@ -40,6 +40,7 @@ component_management:
|
|||||||
- packages/@n8n/decorators/**
|
- packages/@n8n/decorators/**
|
||||||
- packages/@n8n/constants/**
|
- packages/@n8n/constants/**
|
||||||
- packages/@n8n/backend-common/**
|
- packages/@n8n/backend-common/**
|
||||||
|
- packages/@n8n/integration-test-utils/**
|
||||||
- packages/@n8n/db/**
|
- packages/@n8n/db/**
|
||||||
- packages/@n8n/di/**
|
- packages/@n8n/di/**
|
||||||
- packages/@n8n/imap/**
|
- packages/@n8n/imap/**
|
||||||
|
|||||||
7
packages/@n8n/integration-test-utils/.eslintrc.js
Normal file
7
packages/@n8n/integration-test-utils/.eslintrc.js
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
const sharedOptions = require('@n8n/eslint-config/shared');
|
||||||
|
|
||||||
|
/** @type {import('@types/eslint').ESLint.ConfigData} */
|
||||||
|
module.exports = {
|
||||||
|
extends: ['@n8n/eslint-config/base'],
|
||||||
|
...sharedOptions(__dirname),
|
||||||
|
};
|
||||||
29
packages/@n8n/integration-test-utils/package.json
Normal file
29
packages/@n8n/integration-test-utils/package.json
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"name": "@n8n/integration-test-utils",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"scripts": {
|
||||||
|
"clean": "rimraf dist .turbo",
|
||||||
|
"dev": "pnpm watch",
|
||||||
|
"typecheck": "tsc --noEmit",
|
||||||
|
"build": "tsc -p tsconfig.build.json",
|
||||||
|
"format": "biome format --write .",
|
||||||
|
"format:check": "biome ci .",
|
||||||
|
"lint": "eslint .",
|
||||||
|
"lintfix": "eslint . --fix",
|
||||||
|
"watch": "tsc -p tsconfig.build.json --watch",
|
||||||
|
"test": "jest",
|
||||||
|
"test:dev": "jest --watch"
|
||||||
|
},
|
||||||
|
"main": "dist/index.js",
|
||||||
|
"module": "src/index.ts",
|
||||||
|
"types": "dist/index.d.ts",
|
||||||
|
"files": [
|
||||||
|
"dist/**/*"
|
||||||
|
],
|
||||||
|
"dependencies": {
|
||||||
|
"reflect-metadata": "catalog:"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@n8n/typescript-config": "workspace:*"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
packages/@n8n/integration-test-utils/src/index.ts
Normal file
1
packages/@n8n/integration-test-utils/src/index.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export {};
|
||||||
11
packages/@n8n/integration-test-utils/tsconfig.build.json
Normal file
11
packages/@n8n/integration-test-utils/tsconfig.build.json
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"extends": ["./tsconfig.json", "@n8n/typescript-config/tsconfig.build.json"],
|
||||||
|
"compilerOptions": {
|
||||||
|
"composite": true,
|
||||||
|
"rootDir": "src",
|
||||||
|
"outDir": "dist",
|
||||||
|
"tsBuildInfoFile": "dist/build.tsbuildinfo"
|
||||||
|
},
|
||||||
|
"include": ["src/**/*.ts"],
|
||||||
|
"exclude": ["src/**/__tests__/**"]
|
||||||
|
}
|
||||||
12
packages/@n8n/integration-test-utils/tsconfig.json
Normal file
12
packages/@n8n/integration-test-utils/tsconfig.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"extends": "@n8n/typescript-config/tsconfig.common.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"rootDir": ".",
|
||||||
|
"types": ["node", "jest"],
|
||||||
|
"baseUrl": "src",
|
||||||
|
"tsBuildInfoFile": "dist/typecheck.tsbuildinfo",
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"emitDecoratorMetadata": true
|
||||||
|
},
|
||||||
|
"include": ["src/**/*.ts"]
|
||||||
|
}
|
||||||
@@ -95,6 +95,7 @@
|
|||||||
"@n8n/config": "workspace:*",
|
"@n8n/config": "workspace:*",
|
||||||
"@n8n/constants": "workspace:^",
|
"@n8n/constants": "workspace:^",
|
||||||
"@n8n/backend-common": "workspace:^",
|
"@n8n/backend-common": "workspace:^",
|
||||||
|
"@n8n/integration-test-utils": "workspace:^",
|
||||||
"@n8n/db": "workspace:^",
|
"@n8n/db": "workspace:^",
|
||||||
"@n8n/decorators": "workspace:*",
|
"@n8n/decorators": "workspace:*",
|
||||||
"@n8n/di": "workspace:*",
|
"@n8n/di": "workspace:*",
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
{ "path": "../@n8n/decorators/tsconfig.build.json" },
|
{ "path": "../@n8n/decorators/tsconfig.build.json" },
|
||||||
{ "path": "../@n8n/db/tsconfig.build.json" },
|
{ "path": "../@n8n/db/tsconfig.build.json" },
|
||||||
{ "path": "../@n8n/backend-common/tsconfig.build.json" },
|
{ "path": "../@n8n/backend-common/tsconfig.build.json" },
|
||||||
|
{ "path": "../@n8n/integration-test-utils/tsconfig.build.json" },
|
||||||
{ "path": "../@n8n/di/tsconfig.build.json" },
|
{ "path": "../@n8n/di/tsconfig.build.json" },
|
||||||
{ "path": "../@n8n/nodes-langchain/tsconfig.build.json" },
|
{ "path": "../@n8n/nodes-langchain/tsconfig.build.json" },
|
||||||
{ "path": "../@n8n/permissions/tsconfig.build.json" }
|
{ "path": "../@n8n/permissions/tsconfig.build.json" }
|
||||||
|
|||||||
13
pnpm-lock.yaml
generated
13
pnpm-lock.yaml
generated
@@ -686,6 +686,16 @@ importers:
|
|||||||
specifier: ^0.0.3
|
specifier: ^0.0.3
|
||||||
version: 0.0.3(patch_hash=083a73709a54db57b092d986b43d27ddda3cb8008f9510e98bc9e6da0e1cbb62)
|
version: 0.0.3(patch_hash=083a73709a54db57b092d986b43d27ddda3cb8008f9510e98bc9e6da0e1cbb62)
|
||||||
|
|
||||||
|
packages/@n8n/integration-test-utils:
|
||||||
|
dependencies:
|
||||||
|
reflect-metadata:
|
||||||
|
specifier: 'catalog:'
|
||||||
|
version: 0.2.2
|
||||||
|
devDependencies:
|
||||||
|
'@n8n/typescript-config':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../typescript-config
|
||||||
|
|
||||||
packages/@n8n/json-schema-to-zod:
|
packages/@n8n/json-schema-to-zod:
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@n8n/typescript-config':
|
'@n8n/typescript-config':
|
||||||
@@ -1098,6 +1108,9 @@ importers:
|
|||||||
'@n8n/di':
|
'@n8n/di':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../@n8n/di
|
version: link:../@n8n/di
|
||||||
|
'@n8n/integration-test-utils':
|
||||||
|
specifier: workspace:^
|
||||||
|
version: link:../@n8n/integration-test-utils
|
||||||
'@n8n/localtunnel':
|
'@n8n/localtunnel':
|
||||||
specifier: 3.0.0
|
specifier: 3.0.0
|
||||||
version: 3.0.0
|
version: 3.0.0
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
"@n8n/decorators#lint",
|
"@n8n/decorators#lint",
|
||||||
"@n8n/constants#lint",
|
"@n8n/constants#lint",
|
||||||
"@n8n/backend-common#lint",
|
"@n8n/backend-common#lint",
|
||||||
|
"@n8n/integration-test-utils#lint",
|
||||||
"@n8n/db#lint",
|
"@n8n/db#lint",
|
||||||
"@n8n/di#lint",
|
"@n8n/di#lint",
|
||||||
"@n8n/client-oauth2#lint",
|
"@n8n/client-oauth2#lint",
|
||||||
|
|||||||
Reference in New Issue
Block a user