mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-04-02 15:45:29 +00:00
by setting up localVue with all required plugins (such as styleguide and vuex) in a separate testSetup file we can avoid doing this individually in all component tests the testSetup is executed before each test suite, so each test file gets a fresh instance of localVue
29 lines
402 B
Plaintext
29 lines
402 B
Plaintext
{
|
|
"plugins": [
|
|
"@babel/plugin-syntax-dynamic-import",
|
|
"transform-require-context"
|
|
],
|
|
"presets": [
|
|
[
|
|
"@babel/preset-env",
|
|
{
|
|
"modules": false
|
|
}
|
|
]
|
|
],
|
|
"env": {
|
|
"test": {
|
|
"presets": [
|
|
[
|
|
"@babel/preset-env",
|
|
{
|
|
"targets": {
|
|
"node": "10"
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
}
|