BREAKING CHANGE(core): switch to esm

This commit is contained in:
2022-06-07 15:43:28 +02:00
parent 38f001ab23
commit 0e22999f69
17 changed files with 2810 additions and 18677 deletions

View File

@@ -1,10 +1,10 @@
import { tap, expect } from '@pushrocks/tapbundle';
import * as smartfile from '../ts';
import * as smartfile from '../ts/index.js';
tap.test('should create a virtualdirectory', async () => {
const virtualDir = await smartfile.VirtualDirectory.fromFsDirPath('./test/testassets/testfolder');
expect(virtualDir.smartfileArray.length).to.equal(4);
expect(virtualDir.smartfileArray.length).toEqual(4);
});
tap.test('should write to a directory', async () => {