Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
!assets/vscode-material-icons/**
!assets/icons/**
!assets/images/**
!assets/marketplace/**

# Include .env file for telemetry
!.env
15 changes: 15 additions & 0 deletions src/__tests__/dist_assets.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

import * as fs from "fs"
import * as path from "path"
import * as yaml from "yaml"

describe("dist assets", () => {
const distPath = path.join(__dirname, "../dist")
const marketplaceAssetsPath = path.join(__dirname, "../assets/marketplace")

Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
describe("tiktoken", () => {
it("should have tiktoken wasm file", () => {
Expand Down Expand Up @@ -56,4 +58,17 @@ describe("dist assets", () => {
expect(fs.existsSync(path.join(distPath, filename))).toBe(true)
})
})

describe("marketplace assets", () => {
const marketplaceFiles = ["modes.yml", "mcps.yml"]

test.each(marketplaceFiles)("should include bundled %s marketplace asset with multiple items", (filename) => {
const assetPath = path.join(marketplaceAssetsPath, filename)
expect(fs.existsSync(assetPath)).toBe(true)

const parsed = yaml.parse(fs.readFileSync(assetPath, "utf-8"))
expect(Array.isArray(parsed?.items)).toBe(true)
expect(parsed.items.length).toBeGreaterThan(1)
})
})
})
Loading
Loading