Skip to main content
Version: 0.5.0

Configure Test Frameworks

Basically, you can run askui tests with every popular JavaScript/TypeScript test framework, e.g., Jest or Jasmine.


You can configure Jest with the jest.config.ts. It should look something like this:

export default {
preset: 'ts-jest',
testEnvironment: 'node',
setupFilesAfterEnv: ['./helper/jest.setup.ts'],
sandboxInjectedGlobals: ['Math']

In case your Jest tests are executed slowly, make sure you have added 'Math' to sandboxInjectedGlobals.


The option sandboxInjectedGlobals was named extraGlobals in Jest v27 and lower.