rollup-plugin-sass icon indicating copy to clipboard operation
rollup-plugin-sass copied to clipboard

test: use snapshot and split into multiple files

Open marcalexiei opened this issue 7 months ago • 1 comments

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

marcalexiei avatar Jul 03 '24 11:07 marcalexiei