fix(build): rename npmextra config to .smartconfig and update tooling dependencies

This commit is contained in:
2026-04-07 16:02:58 +00:00
parent b905af4132
commit d1fa9e38fd
10 changed files with 2323 additions and 6397 deletions

View File

@@ -1,5 +1,4 @@
import { expect, tap } from '@git.zone/tstest/tapbundle';
import { jestExpect } from '@push.rocks/tapbundle/node';
import { Qenv } from '@push.rocks/qenv';
import * as smartbucket from '../ts/index.js';
@@ -68,12 +67,10 @@ tap.test('should put a file into the trash', async () => {
expect(trashedMetaFile).toBeDefined();
expect(trashedMetaFile).toBeInstanceOf(smartbucket.File);
jestExpect(await trashedMetaFile!.getJsonData()).toEqual({
custom_recycle: {
deletedAt: jestExpect.any(Number),
originalPath: "trashtest/trashme.txt",
},
});
const metaJsonData = await trashedMetaFile!.getJsonData() as any;
expect(metaJsonData).toHaveProperty('custom_recycle');
expect(metaJsonData.custom_recycle).toHaveProperty('originalPath', 'trashtest/trashme.txt');
expect(metaJsonData.custom_recycle.deletedAt).toBeTypeofNumber();
});
tap.test('should restore a file from trash', async () => {