Skip to content

Commit 7114ef3

Browse files
committed
test: add project setup tests
1 parent 3dd026d commit 7114ef3

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.changeset/floppy-paws-strive.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@mcp-tool-kit/shared': patch
3+
---
4+
5+
test: add project setup tests
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { join } from 'path'
2+
import { rmSync } from 'fs'
3+
import { describe, test } from 'vitest'
4+
import { createProject, installDependencies } from '../src'
5+
6+
describe('test project setup file', () => {
7+
test('should create project', async () => {
8+
const projectName = 'test'
9+
const templatePath = join(__dirname, '../../create-mcp-kit/template', 'standard-ts')
10+
const targetPath = join(__dirname, '../../', projectName)
11+
console.log(templatePath)
12+
console.log(targetPath)
13+
await createProject(targetPath, templatePath, { projectName })
14+
await installDependencies(targetPath)
15+
rmSync(targetPath, { recursive: true, force: true })
16+
}, 20000)
17+
})

0 commit comments

Comments
 (0)