rollup-plugin-sass
rollup-plugin-sass copied to clipboard
test: use snapshot and split into multiple files
Part of #141
Unit tests updates
Split tests between files
Unit tests have been divided into multiple files and now use snapshots.
This should improve readability and, hopefully, maintenance efforts.
All common utilities and variables are now exported by test/utils/index
file
insertStyle.test.ts
– replace jsdom
with happy-dom
Since the test are quite simple I opted out to switch jsdom
to happy-dom
(less dependencies and faster)
Additional changes
- All unit test dependencies have been updated:
-
ava
-
@ava/typescript
-
nyc
-
sinon
-
- Added missing
@types
for-
sinon
-
icss-utils
-