kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/715/head
rodzic
439b96f64b
commit
23088eabb3
|
@ -45,6 +45,7 @@
|
|||
"zod": "catalog:"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@agentic/platform-fixtures": "workspace:*",
|
||||
"@commander-js/extra-typings": "^14.0.0",
|
||||
"@types/inquirer": "^9.0.7"
|
||||
},
|
||||
|
|
|
@ -39,9 +39,11 @@ const fixturesDir = path.join(
|
|||
'..',
|
||||
'..',
|
||||
'..',
|
||||
'..',
|
||||
'fixtures'
|
||||
)
|
||||
|
||||
const validFixturesDir = path.join(fixturesDir, 'valid')
|
||||
const invalidFixturesDir = path.join(fixturesDir, 'invalid')
|
||||
|
||||
describe('loadAgenticConfig', () => {
|
||||
|
@ -52,7 +54,7 @@ describe('loadAgenticConfig', () => {
|
|||
timeout: 60_000
|
||||
},
|
||||
async () => {
|
||||
const fixtureDir = path.join(fixturesDir, fixture)
|
||||
const fixtureDir = path.join(validFixturesDir, fixture)
|
||||
|
||||
const config = await loadAgenticConfig({ cwd: fixtureDir })
|
||||
expect(config).toMatchSnapshot()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "@fisch0920/config/tsconfig-node",
|
||||
"include": ["src", "*.config.ts", "fixtures/**/*.config.ts"],
|
||||
"include": ["src", "*.config.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"name": "@agentic/platform-fixtures",
|
||||
"private": true,
|
||||
"version": "0.0.1",
|
||||
"description": "Test fixtures for the Agentic platform.",
|
||||
"author": "Travis Fischer <travis@transitivebullsh.it>",
|
||||
"license": "UNLICENSED",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/transitive-bullshit/agentic-platform.git",
|
||||
"directory": "packages/fixtures"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": {
|
||||
"./valid/**": "./valid/*",
|
||||
"./invalid/**": "./invalid/*"
|
||||
},
|
||||
"files": [
|
||||
"valid",
|
||||
"invalid"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "run-s test:*",
|
||||
"test:lint": "eslint .",
|
||||
"test:typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@agentic/platform-schemas": "workspace:*"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"extends": "@fisch0920/config/tsconfig-node",
|
||||
"include": ["*.config.ts", "valid/**/*.config.ts", "invalid/**/*.config.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
|
@ -278,6 +278,9 @@ importers:
|
|||
specifier: 'catalog:'
|
||||
version: 3.24.4
|
||||
devDependencies:
|
||||
'@agentic/platform-fixtures':
|
||||
specifier: workspace:*
|
||||
version: link:../fixtures
|
||||
'@commander-js/extra-typings':
|
||||
specifier: ^14.0.0
|
||||
version: 14.0.0(commander@14.0.0)
|
||||
|
@ -304,6 +307,12 @@ importers:
|
|||
specifier: ^4.7.9
|
||||
version: 4.7.9
|
||||
|
||||
packages/fixtures:
|
||||
dependencies:
|
||||
'@agentic/platform-schemas':
|
||||
specifier: workspace:*
|
||||
version: link:../schemas
|
||||
|
||||
packages/openapi:
|
||||
dependencies:
|
||||
'@agentic/platform-core':
|
||||
|
|
Ładowanie…
Reference in New Issue