Skip to content

Commit c754f48

Browse files
committed
chore: Replace codify-plugin-test with @codifycli/plugin-test
1 parent 3f53c22 commit c754f48

48 files changed

Lines changed: 106 additions & 162 deletions

Some content is hidden

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

CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,13 @@ Zod is preferred because types are automatically inferred from the schema, preve
195195

196196
### Integration Tests (`test/**/*.test.ts`)
197197
- Full lifecycle tests against real system
198-
- Uses `PluginTester.fullTest()` from `codify-plugin-test`
198+
- Uses `PluginTester.fullTest()` from `@codifycli/plugin-test`
199199
- Tests create → modify → destroy flow
200200
- Includes validation callbacks
201201

202202
**Integration Test Pattern:**
203203
```typescript
204-
import { PluginTester } from 'codify-plugin-test'
204+
import { PluginTester } from '@codifycli/plugin-test'
205205

206206
await PluginTester.fullTest(pluginPath, [
207207
{ type: 'alias', alias: 'my-alias', value: 'ls -l' }
@@ -414,4 +414,4 @@ The framework automatically validates dependencies exist and orders execution.
414414
- Simple: `src/resources/shell/alias/alias-resource.ts`
415415
- Multi-item: `src/resources/shell/aliases/aliases-resource.ts`
416416
- Complex: `src/resources/git/repository/git-repository.ts`
417-
- Stateful: `src/resources/homebrew/homebrew.ts`
417+
- Stateful: `src/resources/homebrew/homebrew.ts`

package-lock.json

Lines changed: 54 additions & 110 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"license": "ISC",
2424
"type": "module",
2525
"dependencies": {
26-
"@codifycli/plugin-core": "1.0.0-beta1",
27-
"@codifycli/schemas": "1.0.0-beta1",
26+
"@codifycli/plugin-core": "1.0.0-beta2",
27+
"@codifycli/schemas": "1.0.0",
2828
"ajv": "^8.18.0",
2929
"ajv-formats": "^2.1.1",
3030
"chalk": "^5.3.0",
@@ -38,6 +38,7 @@
3838
},
3939
"devDependencies": {
4040
"@apidevtools/json-schema-ref-parser": "^11.7.2",
41+
"@codifycli/plugin-test": "^1.0.0-beta1",
4142
"@fastify/merge-json-schemas": "^0.2.0",
4243
"@oclif/prettier-config": "^0.2.1",
4344
"@oclif/test": "^3",
@@ -56,7 +57,6 @@
5657
"@types/node": "^18",
5758
"@types/plist": "^3.0.5",
5859
"@types/semver": "^7.5.4",
59-
"codify-plugin-test": "0.0.53-beta24",
6060
"commander": "^12.1.0",
6161
"eslint": "^10.0.3",
6262
"eslint-config-oclif": "^6.0.146",

scripts/run-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Shell, SpawnStatus, VerbosityLevel } from '@codifycli/plugin-core';
2-
import { testSpawn, TestUtils } from 'codify-plugin-test';
2+
import { testSpawn, TestUtils } from '@codifycli/plugin-test';
33
import { Command } from 'commander';
44
import { spawn } from 'node:child_process';
55
import * as inspector from 'node:inspector';

test/android/android-studio.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
2-
import { PluginTester } from 'codify-plugin-test';
2+
import { PluginTester } from '@codifycli/plugin-test';
33
import * as path from 'node:path';
44
import * as fs from 'node:fs/promises';
55
import { Utils } from '@codifycli/plugin-core';

test/apt/apt.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
2-
import { PluginTester, testSpawn } from 'codify-plugin-test';
2+
import { PluginTester, testSpawn } from '@codifycli/plugin-test';
33
import * as path from 'node:path';
44
import { TestUtils } from '../test-utils.js';
55
import { SpawnStatus, Utils } from '@codifycli/plugin-core';

test/asdf/asdf-install.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { afterAll, describe, expect, it } from 'vitest';
2-
import { PluginTester, testSpawn } from 'codify-plugin-test';
2+
import { PluginTester, testSpawn } from '@codifycli/plugin-test';
33
import path from 'node:path';
44
import fs from 'node:fs/promises';
55
import os from 'node:os';

test/asdf/asdf.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { afterAll, beforeAll, describe, expect, it } from 'vitest';
2-
import { PluginTester, testSpawn, TestUtils } from 'codify-plugin-test';
2+
import { PluginTester, testSpawn, TestUtils } from '@codifycli/plugin-test';
33
import * as path from 'node:path';
44
import * as cp from 'child_process'
55
import { SpawnStatus } from '@codifycli/plugin-core';

test/aws-cli/aws-cli.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { beforeEach, describe, expect, it } from 'vitest';
2-
import { PluginTester, testSpawn } from 'codify-plugin-test';
2+
import { PluginTester, testSpawn } from '@codifycli/plugin-test';
33
import * as path from 'node:path';
44
import cp from 'child_process';
55
import { TestUtils } from '../test-utils.js';

test/aws-cli/aws-profile.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from 'vitest';
2-
import { PluginTester, testSpawn } from 'codify-plugin-test';
2+
import { PluginTester, testSpawn } from '@codifycli/plugin-test';
33
import * as path from 'node:path';
44
import * as fs from 'node:fs/promises';
55

0 commit comments

Comments
 (0)