mirror of
https://github.com/h-sphere/sql-seal.git
synced 2026-07-22 10:10:28 +00:00
* feat: WIP. Proof of concept of using sqlite-wasm * chore: few experiments with kysely * chore: poc of using idb with modern version of sqlite * feat: reworking project to use wa-sqlite * feat: making database queries work too * infra: refactoring database connection and cleaning dependencies * fix: fixing issue with tests * chore: adding missing packages * chore: underlying engine updated to wa-sqlite
23 lines
578 B
JavaScript
23 lines
578 B
JavaScript
/** @type {import('ts-jest').JestConfigWithTsJest} **/
|
|
export default {
|
|
testEnvironment: "node",
|
|
extensionsToTreatAsEsm: ['.ts'],
|
|
setupFilesAfterEnv: ['<rootDir>/jest.setup.mjs'],
|
|
moduleNameMapper: {
|
|
'^virtual:wa-sqlite-wasm-url$': '<rootDir>/src/modules/explorer/database/__tests__/__mocks__/wa-sqlite-wasm-url.ts',
|
|
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
},
|
|
transform: {
|
|
'^.+\\.tsx?$': [
|
|
'ts-jest',
|
|
{
|
|
useESM: true,
|
|
}
|
|
],
|
|
},
|
|
testPathIgnorePatterns: [
|
|
'/node_modules/',
|
|
'/__mocks__/'
|
|
],
|
|
transformIgnorePatterns: [],
|
|
};
|