Update failing unit tests
- Add babel plugin to handle Jest import of SVG. Without plugin the
test fails with a require.context() is undefined
- Update snapshot tests that have changed
- Removed globals from .eslintrc.js that were needed prior to
migrating from Mocha and Chai to Jest
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: Ibd01d2e629b5ecb47d072e277e4e9b5ae5c5f001
diff --git a/babel.config.js b/babel.config.js
index b8daaab..073c338 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -1,3 +1,8 @@
module.exports = {
presets: [['@vue/cli-plugin-babel/preset', { useBuiltIns: 'entry' }]],
+ env: {
+ test: {
+ plugins: ['transform-require-context'],
+ },
+ },
};