New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: vector store #68
Changes from all commits
a4a4e46
9d1b109
7c3c046
ceb39a9
61d8717
76b17a0
1705980
95aaf1c
0c9a1d5
13c6c15
956d13d
b006b4c
deaf1e9
7be8cf5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,6 @@ live-canvas-generate-image-output.png.tmp.png | |
# test | ||
coverage | ||
playwright-report | ||
|
||
# qdrant | ||
Captain_Data/* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { defaults } from "jest-config"; | ||
|
||
const jestConfig = { | ||
...defaults, | ||
roots: ["<rootDir>/src/electron"], | ||
testMatch: ["**/e2e/**/*.test.ts"], | ||
transform: { | ||
"^.+\\.(ts|js)$": ["@swc/jest"], | ||
}, | ||
moduleNameMapper: { | ||
"@/(.*)": "<rootDir>/src/electron/future/$1", | ||
"#/(.*)": "<rootDir>/src/shared/$1", | ||
}, | ||
collectCoverage: true, | ||
coverageDirectory: "./coverage", | ||
coverageProvider: "v8", | ||
coverageReporters: ["lcov", "text", "json"], | ||
coverageThreshold: { | ||
global: { | ||
lines: 80, | ||
}, | ||
}, | ||
transformIgnorePatterns: ["/node_modules/.+\\.(?!c?js|mjs$)[^.]+$"], | ||
extensionsToTreatAsEsm: [".ts"], | ||
}; | ||
|
||
export default jestConfig; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ const jestConfig = { | |
...defaults, | ||
roots: ["<rootDir>/src/electron"], | ||
testMatch: ["**/?(*.)test.ts"], | ||
testPathIgnorePatterns: [".e2e."], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this suggests the naming pattern of e2e to be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a regex pattern, which makes sure to work for both directories like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And the purpose is to ignore any files / folders that contain |
||
transform: { | ||
"^.+\\.(ts|js)$": ["@swc/jest"], | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shoul this rather be
*.e2e.test.ts
? (see comment beolw)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided against having
e2e
in the file name, but have a dedicated folder for e2e-tests.