PHP Classes

File: jest-unit.config.js

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WordPress React Plugin Kit   jest-unit.config.js   Download  
File: jest-unit.config.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WordPress React Plugin Kit
Environment to develop new WordPress plugins
Author: By
Last change:
Date: 1 year ago
Size: 431 bytes
 

Contents

Class file image Download
const jestPreset = require('@wordpress/jest-preset-default/jest-preset'); // Modify the jest preset to support for unit and integration tests. const config = { ...jestPreset, transformIgnorePatterns: ['node_modules/(?!@wordpress)/'], transform: { '^.+\\.(js|jsx|ts|tsx)$': 'ts-jest', }, }; config.setupFilesAfterEnv.push(require.resolve('./tests/unit/config/testing-library.js')) module.exports = config;