Skip to content

Commit dd54d65

Browse files
author
Jakub Freisler
committed
test: fix SCSS & CSS file handling
1 parent d488ed4 commit dd54d65

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ module.exports = {
1515
lines: 100,
1616
statements: 100
1717
}
18+
},
19+
moduleNameMapper: {
20+
'^.+\\.(css|scss)$': 'identity-obj-proxy'
1821
}
1922
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"eslint-plugin-jest": "^24.1.3",
6161
"eslint-plugin-monorepo": "^0.3.2",
6262
"husky": "^4.3.7",
63+
"identity-obj-proxy": "^3.0.0",
6364
"jest": "^26.6.3",
6465
"lerna": "^3.22.1",
6566
"microbundle": "^0.13.0",

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7564,6 +7564,11 @@ hard-rejection@^2.1.0:
75647564
resolved "https://registry.yarnpkg.com/hard-rejection/-/hard-rejection-2.1.0.tgz#1c6eda5c1685c63942766d79bb40ae773cecd883"
75657565
integrity sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==
75667566

7567+
harmony-reflect@^1.4.6:
7568+
version "1.6.1"
7569+
resolved "https://registry.yarnpkg.com/harmony-reflect/-/harmony-reflect-1.6.1.tgz#c108d4f2bb451efef7a37861fdbdae72c9bdefa9"
7570+
integrity sha512-WJTeyp0JzGtHcuMsi7rw2VwtkvLa+JyfEKJCFyfcS0+CDkjQ5lHPu7zEhFZP+PDSRrEgXa5Ah0l1MbgbE41XjA==
7571+
75677572
has-ansi@^2.0.0:
75687573
version "2.0.0"
75697574
resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
@@ -8044,6 +8049,13 @@ icss-utils@^5.0.0:
80448049
resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-5.1.0.tgz#c6be6858abd013d768e98366ae47e25d5887b1ae"
80458050
integrity sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==
80468051

8052+
identity-obj-proxy@^3.0.0:
8053+
version "3.0.0"
8054+
resolved "https://registry.yarnpkg.com/identity-obj-proxy/-/identity-obj-proxy-3.0.0.tgz#94d2bda96084453ef36fbc5aaec37e0f79f1fc14"
8055+
integrity sha1-lNK9qWCERT7zb7xarsN+D3nx/BQ=
8056+
dependencies:
8057+
harmony-reflect "^1.4.6"
8058+
80478059
ieee754@^1.1.13, ieee754@^1.1.4:
80488060
version "1.2.1"
80498061
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"

0 commit comments

Comments
 (0)