jest.config.js 504 B

123456789101112131415161718
  1. // Copyright 2019-2024 Tauri Programme within The Commons Conservancy
  2. // SPDX-License-Identifier: Apache-2.0
  3. // SPDX-License-Identifier: MIT
  4. module.exports = {
  5. setupFilesAfterEnv: ['<rootDir>/test/jest/jest.setup.js'],
  6. testMatch: [
  7. '<rootDir>/test/jest/__tests__/**/*.spec.js',
  8. '<rootDir>/test/jest/__tests__/**/*.test.js'
  9. ],
  10. moduleFileExtensions: ['ts', 'js', 'json'],
  11. moduleNameMapper: {
  12. '^~/(.*)$': '<rootDir>/$1'
  13. },
  14. transform: {
  15. '\\.toml$': 'jest-transform-toml'
  16. }
  17. }