Skip to content

Commit

Permalink
Merge branch 'main' into nickclyde/aidbox
Browse files Browse the repository at this point in the history
  • Loading branch information
nickclyde authored Feb 21, 2025
2 parents 0cce53a + c2ae154 commit 6df30cb
Show file tree
Hide file tree
Showing 22 changed files with 1,649 additions and 697 deletions.
11 changes: 2 additions & 9 deletions query-connector/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"unused-imports",
"jsdoc"
],
"plugins": ["@typescript-eslint", "unused-imports", "jsdoc"],
"extends": [
"plugin:@next/next/recommended",
"plugin:jsdoc/recommended-typescript-error",
Expand Down Expand Up @@ -44,10 +40,7 @@
},
"overrides": [
{
"files": [
"*.test*",
"**/tests/**/*"
],
"files": ["*.test*", "**/tests/**/*"],
"rules": {
"jsdoc/require-jsdoc": "off"
}
Expand Down
9 changes: 8 additions & 1 deletion query-connector/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ const customJestConfig = {
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
testEnvironment: "jest-fixed-jsdom",
modulePathIgnorePatterns: ["<rootDir>/.next/"],
moduleNameMapper: { "^@/(.*)$": "<rootDir>/src/$1" },
};

// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
module.exports = createJestConfig(customJestConfig);
/**
* Creates and exports Jest configuration.
* @returns The Jest configuration object.
*/
module.exports = async () => ({
...(await createJestConfig(customJestConfig)()),
});
Loading

0 comments on commit 6df30cb

Please sign in to comment.