Skip to content

Babel Jest plugin to be used with amcharts

License

Notifications You must be signed in to change notification settings

mailersend/babel-jest-amcharts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-jest-amcharts

Babel jest plugin customised to work with amCharts

Usage

If you are already using jest-cli, just add babel-jest-amcharts and it will automatically compile JavaScript code using Babel.

npm install --D babel-jest-amcharts @babel/core

Setup

To explicitly define babel-jest-amcharts as a transformer for your JavaScript code, map .js files to the babel-jest module.

"transform": {
  "^.+\\.(js|jsx)$": "babel-jest-amcharts"
},

And exclude @amcharts files from being skipped for tarnsformation by jest.

"transformIgnorePatterns": [
  "[/\\\\]node_modules[/\\\\](?!(@amcharts)\\/).+\\.(js|jsx|ts|tsx)$"
],

About

Babel Jest plugin to be used with amcharts

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%