Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Xicheng Guo committed Jan 11, 2024
1 parent 88d5665 commit 414ab8d
Show file tree
Hide file tree
Showing 7 changed files with 153 additions and 578 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: npm install

- name: Run Jest tests
run: npm run test
run: npm run test:real
env:
TEST_GITEE_TOKEN: ${{ secrets.TEST_GITEE_TOKEN }}
TEST_GITEE_OWNER: ${{ secrets.TEST_GITEE_OWNER }}
Expand Down
40 changes: 20 additions & 20 deletions jest.config.js → jest.config.fake.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
module.exports = {
testTimeout: 120000,
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverageFrom: [
"src/**/*.ts", // 包括 src 目录下所有的 TypeScript 文件
"!src/**/*.d.ts", // 排除 TypeScript 声明文件
"!src/__tests__/**/*.ts"
],
testMatch: ["<rootDir>/src/__tests__/**/*.test.ts"],
testPathIgnorePatterns: [
"src/__tests__/authenticate-gitee.test.ts",
"src/__tests__/authenticate-github.test.ts",
"src/__tests__/authenticate-gitlab.test.ts",
"src/__tests__/book-repository.test.ts",
"src/__tests__/chat-repository.test.ts",
"src/__tests__/user-repository.test.ts",
"src/__tests__/wx-request.test.ts"
]
};
module.exports = {
testTimeout: 120000,
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverageFrom: [
"src/**/*.ts", // 包括 src 目录下所有的 TypeScript 文件
"!src/**/*.d.ts", // 排除 TypeScript 声明文件
"!src/__tests__/**/*.ts"
],
testMatch: ["<rootDir>/src/__tests__/**/*.test.ts"],
testPathIgnorePatterns: [
"src/__tests__/authenticate-gitee.test.ts",
"src/__tests__/authenticate-github.test.ts",
"src/__tests__/authenticate-gitlab.test.ts",
"src/__tests__/book-repository.test.ts",
"src/__tests__/chat-repository.test.ts",
"src/__tests__/user-repository.test.ts",
"src/__tests__/wx-request.test.ts"
]
};
15 changes: 15 additions & 0 deletions jest.config.real.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
testTimeout: 120000,
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverageFrom: [
"src/**/*.ts", // 包括 src 目录下所有的 TypeScript 文件
"!src/**/*.d.ts", // 排除 TypeScript 声明文件
"!src/__tests__/**/*.ts"
],
testMatch: ["<rootDir>/src/__tests__/**/*.test.ts"],
testPathIgnorePatterns: [
"src/__tests__/fake-authenticate-gitee.test.ts",
"src/__tests__/wx-request.test.ts"
]
};
Loading

0 comments on commit 414ab8d

Please sign in to comment.