0

My jest tests are very slow at the moment and I suspect that one of the reasons is that dynality has slow defaults, such as an intentional delay on all updates. Is it possible to change these settings in a jest-dynalite environment?

My jest.config.js:

module.exports = {
  "preset": 'ts-jest/presets/default-esm',
   ...
  "testEnvironment": "jest-dynalite/environment.js"
};

I tried exploring the import * as dynalite from 'jest-dynalite'; object but did not get far.

gatapia
  • 3,574
  • 4
  • 40
  • 48

1 Answers1

0

It appears that this is already done, can be seen here:

export const dynaliteInstance = dynalite({
  createTableMs: 0,
  deleteTableMs: 0,
  updateTableMs: 0,
});
gatapia
  • 3,574
  • 4
  • 40
  • 48