PHP Classes

File: jest-unit.config.js

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   Maniruzzaman WordPress Frontend Editor   jest-unit.config.js   Download  
File: jest-unit.config.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Maniruzzaman WordPress Frontend Editor
WordPress plugin for visual front-end development
Author: By
Last change:
Date: 8 months 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;