You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the npm run test command, from the root of the repo or the root of the theme, I get errors like this and the tests fail:
[BABEL] /home/josh/wp-scaffold/themes/10up-theme/includes/blocks/example-block/test.test.js: Unknown option: .wordpress. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.
- Maybe you meant to use
"preset": [
["@10up/babel-preset-default", {
"wordpress": true
}]
]
To be a valid preset, its name and options should be wrapped in a pair of brackets
at throwUnknownError (node_modules/@babel/core/lib/config/validation/options.js:131:27)
at node_modules/@babel/core/lib/config/validation/options.js:116:5
at Array.forEach (<anonymous>)
at validateNested (node_modules/@babel/core/lib/config/validation/options.js:92:21)
at validate (node_modules/@babel/core/lib/config/validation/options.js:83:10)
at node_modules/@babel/core/lib/config/full.js:320:36
at cachedFunction (node_modules/@babel/core/lib/config/caching.js:52:27)
at cachedFunction.next (<anonymous>)
at evaluateSync (node_modules/gensync/index.js:251:28)
at sync (node_modules/gensync/index.js:89:14)
Describe the bug
When using the
npm run test
command, from the root of the repo or the root of the theme, I get errors like this and the tests fail:Steps to Reproduce
test( 'something', ()=> { expect(1).toBe(1)
;npm run test
from the theme's directory.Environment information
The text was updated successfully, but these errors were encountered: