How to use the @grafana/toolkit/src/config/jest.plugin.config.jestConfig function in @grafana/toolkit

To help you get started, we’ve selected a few @grafana/toolkit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RedisGrafana / grafana-redis-datasource / jest.config.js View on Github external
// This file is needed because it is used by vscode and other tools that
// call `jest` directly.  However, unless you are doing anything special
// do not edit this file

const standard = require('@grafana/toolkit/src/config/jest.plugin.config');

// This process will use the same config that `yarn test` is using
const grafanaJestConfig = standard.jestConfig('');
module.exports = {
  ...grafanaJestConfig,
  coveragePathIgnorePatterns: ['node_modules', 'src/tests'].concat(
    grafanaJestConfig.coveragePathIgnorePatterns ? grafanaJestConfig.coveragePathIgnorePatterns : []
  ),
};
github sbueringer / grafana-consul-datasource / jest.config.js View on Github external
// This file is needed because it is used by vscode and other tools that
// call `jest` directly.  However, unless you are doing anything special
// do not edit this file

const standard = require('@grafana/toolkit/src/config/jest.plugin.config');

// This process will use the same config that `yarn test` is using
module.exports = standard.jestConfig();