1 Star 0 Fork 0

Gitee 极速下载/flux159_mcp-server-kubernetes

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Flux159/mcp-server-kubernetes
克隆/下载
vitest.config.ts 1001 Bytes
一键复制 编辑 原始数据 按行查看 历史
import { defineConfig } from "vitest/config";
import { BaseSequencer } from "vitest/node";
// Custom sequencer that puts kubectl.test.ts at the end
class KubectlSequencer extends BaseSequencer {
// Override the sort method to place kubectl tests last
async sort(files) {
// Get default sorted files
const sortedFiles = await super.sort(files);
sortedFiles.forEach((file) => {
console.log(file.moduleId);
});
// Split into kubectl tests and other tests
const kubectlTests = sortedFiles.filter((f) =>
f.moduleId.includes("kubectl.test.ts")
);
const otherTests = sortedFiles.filter(
(f) => !f.moduleId.includes("kubectl.test.ts")
);
// Return other tests first, then kubectl tests
return [...otherTests, ...kubectlTests];
}
}
export default defineConfig({
test: {
testTimeout: 120000,
hookTimeout: 60000,
exclude: ["dist/**/*", "node_modules/**/*"],
sequence: {
sequencer: KubectlSequencer,
},
},
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/flux159_mcp-server-kubernetes.git
git@gitee.com:mirrors/flux159_mcp-server-kubernetes.git
mirrors
flux159_mcp-server-kubernetes
flux159_mcp-server-kubernetes
main

搜索帮助