Testing Pushkin with Jest
The content on this page may be out of date - stay tuned for edits!
Install Jest using
yarn
: yarn add --dev jest
To use Babel, install required dependencies via
yarn
: yarn add --dev babel-jest @babel/core @babel/preset-env
Configure Babel to target your current version of Node by creating a
babel.config.js
file in the root of your project:// babel.config.js
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
],
};
Last modified 2mo ago