Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
jest.e2e.conf.json 1002 B
{
  "moduleNameMapper": {
    "^enzyme$": "enzyme-2",
    "\\.(css|less)$": "<rootDir>/frontend/test/__mocks__/styleMock.js",
    "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/frontend/test/__mocks__/fileMock.js",
    "^promise-loader\\?global\\!metabase\\/lib\\/ga-metadata$": "<rootDir>/frontend/src/metabase/lib/ga-metadata.js"
  },
  "testPathIgnorePatterns": [
    "<rootDir>/frontend/test/legacy-karma",
    "<rootDir>/frontend/test/legacy-selenium"
  ],
  "testMatch": [
    "<rootDir>/frontend/test/**/*.e2e.spec.js?(x)"
  ],
  "modulePaths": [
    "<rootDir>/frontend/test",
    "<rootDir>/frontend/src"
  ],
  "setupFiles": [
    "<rootDir>/frontend/test/jest-setup.js",
    "<rootDir>/frontend/test/metabase-bootstrap.js",
    "<rootDir>/frontend/test/__support__/mocks.js",
    "<rootDir>/frontend/test/register-visualizations.js"
  ],
  "globals": {
    "ace": {},
    "ga": {},
    "document": {}
  },
  "testURL": "http://localhost"
}