UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit de8fcea0 authored by graham.smith's avatar graham.smith
Browse files

Merge branch 'fix-jest-warnings' into 'master'

fix for jest warnings related to svg

See merge request platform-one/private/bullhorn/platform1-site!8
parents 3bb7be50 802dd926
No related branches found
No related tags found
No related merge requests found
......@@ -105,8 +105,8 @@
"statements": -10
}
},
"moduleNameMapper": {
"\\.(css|less)$": "<rootDir>/tests/unit/__mocks__/styleMock.js"
"transform": {
"^.+\\.svg$": "<rootDir>/tests/unit/__mocks__/svgTransform.js"
}
},
"resolutions": {
......@@ -114,4 +114,4 @@
"minimist": "^1.2.5",
"yargs-parser": "^18.1.3"
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<svg width="26px" height="34px" viewBox="0 0 26 34" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>OfficeTools Icons-05</title>
<g id="Home" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
......
<?xml version="1.0" encoding="UTF-8"?>
<svg width="39px" height="34px" viewBox="0 0 39 34" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Network Icons-21</title>
<g id="Home" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
......
<?xml version="1.0" encoding="UTF-8"?>
<svg width="40px" height="34px" viewBox="0 0 40 34" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Network Icons-13</title>
<g id="Home" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
......
<?xml version="1.0" encoding="UTF-8"?>
<svg width="33px" height="34px" viewBox="0 0 33 34" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>3D Printing Icons-17</title>
<g id="Home" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
......
<?xml version="1.0" encoding="UTF-8"?>
<svg width="26px" height="41px" viewBox="0 0 26 41" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Network Icons-25</title>
<g id="Home" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
......
<?xml version="1.0" encoding="UTF-8"?>
<svg width="45px" height="34px" viewBox="0 0 45 34" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Network Icons-17</title>
<g id="Home" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
......
<?xml version="1.0" encoding="UTF-8"?>
<svg width="245px" height="76px" viewBox="0 0 245 76" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Logo_P1_Yoda_Campfire</title>
<g id="Home" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
......
const vueJest = require("vue-jest/lib/template-compiler");
module.exports = {
process(content) {
const { render } = vueJest({
content,
attrs: {
functional: false
}
});
return `module.exports = { render: ${render} }`;
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment