h-sphere_sql-seal/jest.config.mjs
Kacper bf085fe896
Migrating SQL Engine to wa-sqlite (#193)
* 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
2026-03-22 18:01:03 +00:00

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: [],
};