Skip to content
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

Merged
merged 14 commits into from Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -27,3 +27,6 @@ live-canvas-generate-image-output.png.tmp.png
# test
coverage
playwright-report

# qdrant
Captain_Data/*
27 changes: 27 additions & 0 deletions jest.config.electron.e2e.ts
@@ -0,0 +1,27 @@
import { defaults } from "jest-config";

const jestConfig = {
...defaults,
roots: ["<rootDir>/src/electron"],
testMatch: ["**/e2e/**/*.test.ts"],
Copy link
Member

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)

Copy link
Member Author

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.

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;
1 change: 1 addition & 0 deletions jest.config.electron.ts
Expand Up @@ -4,6 +4,7 @@ const jestConfig = {
...defaults,
roots: ["<rootDir>/src/electron"],
testMatch: ["**/?(*.)test.ts"],
testPathIgnorePatterns: [".e2e."],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this suggests the naming pattern of e2e to be *.e2e.test.ts

Copy link
Member Author

Choose a reason for hiding this comment

The 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 __test__/e2e/* and files *.e2e.test.ts.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the purpose is to ignore any files / folders that contain e2e.

transform: {
"^.+\\.(ts|js)$": ["@swc/jest"],
},
Expand Down