@@ -4,7 +4,6 @@ const { test } = require('uvu');
44const assert = require ( 'uvu/assert' ) ;
55const { SourceMapConsumer } = require ( 'source-map' ) ;
66const { rollup } = require ( 'rollup' ) ;
7- const sander = require ( 'sander' ) ;
87const { VERSION } = require ( 'svelte/compiler' ) ;
98const plugin = require ( '..' ) ;
109
@@ -75,8 +74,8 @@ test('creates a {code, map, dependencies} object, excluding the AST etc', async
7574} ) ;
7675
7776test ( 'respects `sourcemapExcludeSources` Rollup option' , async ( ) => {
78- sander . rimrafSync ( 'test/sourcemap-test/dist' ) ;
79- sander . mkdirSync ( 'test/sourcemap-test/dist' ) ;
77+ fs . rmSync ( 'test/sourcemap-test/dist' , { recursive : true , force : true } ) ;
78+ fs . mkdirSync ( 'test/sourcemap-test/dist' , { recursive : true } ) ;
8079
8180 const bundle = await rollup ( {
8281 input : 'test/sourcemap-test/src/main.js' ,
@@ -263,8 +262,8 @@ test('intercepts warnings', async () => {
263262} ) ;
264263
265264test ( 'handles filenames that happen to contain ".svelte"' , async ( ) => {
266- sander . rimrafSync ( 'test/filename-test/dist' ) ;
267- sander . mkdirSync ( 'test/filename-test/dist' ) ;
265+ fs . rmSync ( 'test/filename-test/dist' , { recursive : true , force : true } ) ;
266+ fs . mkdirSync ( 'test/filename-test/dist' , { recursive : true } ) ;
268267
269268 try {
270269 const bundle = await rollup ( {
@@ -322,8 +321,8 @@ test('handles filenames that happen to contain ".svelte"', async () => {
322321test ( 'handles ".svelte.ts/js" files' , async ( ) => {
323322 if ( ! isSvelte5Plus ) return ;
324323
325- sander . rimrafSync ( 'test/filename-test2/dist' ) ;
326- sander . mkdirSync ( 'test/filename-test2/dist' ) ;
324+ fs . rmSync ( 'test/filename-test2/dist' , { recursive : true , force : true } ) ;
325+ fs . mkdirSync ( 'test/filename-test2/dist' , { recursive : true } ) ;
327326
328327 try {
329328 const bundle = await rollup ( {
@@ -351,8 +350,8 @@ test('handles ".svelte.ts/js" files', async () => {
351350} ) ;
352351
353352test ( 'ignores ".html" extension by default' , async ( ) => {
354- sander . rimrafSync ( 'test/node_modules/widget/dist' ) ;
355- sander . mkdirSync ( 'test/node_modules/widget/dist' ) ;
353+ fs . rmSync ( 'test/node_modules/widget/dist' , { recursive : true , force : true } ) ;
354+ fs . mkdirSync ( 'test/node_modules/widget/dist' , { recursive : true } ) ;
356355
357356 try {
358357 const bundle = await rollup ( {
@@ -378,8 +377,8 @@ test('ignores ".html" extension by default', async () => {
378377} ) ;
379378
380379test ( 'allows ".html" extension if configured' , async ( ) => {
381- sander . rimrafSync ( 'test/node_modules/widget/dist' ) ;
382- sander . mkdirSync ( 'test/node_modules/widget/dist' ) ;
380+ fs . rmSync ( 'test/node_modules/widget/dist' , { recursive : true , force : true } ) ;
381+ fs . mkdirSync ( 'test/node_modules/widget/dist' , { recursive : true } ) ;
383382
384383 try {
385384 const bundle = await rollup ( {
0 commit comments