Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions packages/cubejs-firebolt-driver/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const base = require('../../jest.base.config');

/** @type {import('jest').Config} */
module.exports = {
...base,
rootDir: '.',
// Suites run from the compiled output — the sources under test/ have no
// transform and cannot execute.
testMatch: [
'<rootDir>/dist/test/**/*.{test,spec}.{ts,js}'
],
// test-env.js maps DRIVERS_TESTS_FIREBOLT_* onto the CUBEJS_DB_* names the
// driver reads, so it must survive alongside the base setup file. It stays a
// source path: tsc has no allowJs, so it is never emitted into dist/.
setupFiles: [...base.setupFiles, '<rootDir>/test/test-env.js'],
};
6 changes: 0 additions & 6 deletions packages/cubejs-firebolt-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@
"publishConfig": {
"access": "public"
},
"jest": {
"testEnvironment": "node",
"setupFiles": [
"./test/test-env.js"
]
},
"eslintConfig": {
"extends": "../cubejs-linter"
}
Expand Down
12 changes: 12 additions & 0 deletions packages/cubejs-materialize-driver/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const base = require('../../jest.base.config');

/** @type {import('jest').Config} */
module.exports = {
...base,
rootDir: '.',
// Suites run from the compiled output — the sources under test/ have no
// transform and cannot execute.
testMatch: [
'<rootDir>/dist/test/**/*.{test,spec}.{ts,js}'
],
};
3 changes: 0 additions & 3 deletions packages/cubejs-materialize-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
"publishConfig": {
"access": "public"
},
"jest": {
"testEnvironment": "node"
},
"eslintConfig": {
"extends": "../cubejs-linter"
}
Expand Down
12 changes: 12 additions & 0 deletions packages/cubejs-mongobi-driver/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const base = require('../../jest.base.config');

/** @type {import('jest').Config} */
module.exports = {
...base,
rootDir: '.',
// Suites run from the compiled output — the sources under test/ have no
// transform and cannot execute.
testMatch: [
'<rootDir>/dist/test/**/*.{test,spec}.{ts,js}'
],
};
3 changes: 0 additions & 3 deletions packages/cubejs-mongobi-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
"testcontainers": "^10.28.0",
"typescript": "~5.2.2"
},
"jest": {
"testEnvironment": "node"
},
"eslintConfig": {
"extends": "../cubejs-linter"
}
Expand Down
12 changes: 12 additions & 0 deletions packages/cubejs-postgres-driver/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const base = require('../../jest.base.config');

/** @type {import('jest').Config} */
module.exports = {
...base,
rootDir: '.',
// Suites run from the compiled output — the sources under test/ have no
// transform and cannot execute.
testMatch: [
'<rootDir>/dist/test/**/*.{test,spec}.{ts,js}'
],
Comment thread
igorlukanin marked this conversation as resolved.
};
3 changes: 0 additions & 3 deletions packages/cubejs-postgres-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@
"publishConfig": {
"access": "public"
},
"jest": {
"testEnvironment": "node"
},
"eslintConfig": {
"extends": "../cubejs-linter"
}
Expand Down
12 changes: 12 additions & 0 deletions packages/cubejs-questdb-driver/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const base = require('../../jest.base.config');

/** @type {import('jest').Config} */
module.exports = {
...base,
rootDir: '.',
// Suites run from the compiled output — the sources under test/ have no
// transform and cannot execute.
testMatch: [
'<rootDir>/dist/test/**/*.{test,spec}.{ts,js}'
],
};
3 changes: 0 additions & 3 deletions packages/cubejs-questdb-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
"publishConfig": {
"access": "public"
},
"jest": {
"testEnvironment": "node"
},
"eslintConfig": {
"extends": "../cubejs-linter"
}
Expand Down
Loading