You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when trying to test RxDB under jest there is a strange load error:
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.
/Users/davidedelhart/Documents/repos/planboard/node_modules/pouchdb-utils/node_modules/uuid/dist/esm-browser/index.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){export { default as v1 } from './v1.js';
^^^^^^
SyntaxError: Unexpected token 'export'
this is my database engine creation code:
import {
createRxDatabase, RxDatabase
} from 'rxdb'
import { addRxPlugin } from 'rxdb';
import { RxDBDevModePlugin } from 'rxdb/plugins/dev-mode';
import { getRxStorageMemory } from 'rxdb/dist/types/plugins/storage-memory'
addRxPlugin(RxDBDevModePlugin);
export default async function createDb() : Promise<RxDatabase> {
const base = await createRxDatabase({
name: 'planboard',
storage: getRxStorageMemory(),
eventReduce: true,
ignoreDuplicate: true,
});
return base as RxDatabase;
}
The text was updated successfully, but these errors were encountered:
when trying to test RxDB under jest there is a strange load error:
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.
this is my database engine creation code:
The text was updated successfully, but these errors were encountered: