fix(build): modernize project tooling and test configuration

This commit is contained in:
2026-05-01 18:26:33 +00:00
parent 3d33be0112
commit e37badb157
9 changed files with 6920 additions and 5323 deletions
+18
View File
@@ -0,0 +1,18 @@
import { expect, tap } from '@git.zone/tstest/tapbundle';
import * as webjwt from '../ts/index.js';
tap.test('first test', async () => {
const originalString = JSON.stringify({
a: {
complex_2: {
object: 'yes',
},
},
});
const stringToDecode = `abc.${btoa(originalString)}.rthgf`;
const result = webjwt.getDataFromJwtString(stringToDecode);
expect(result.a['complex_2'].object).toEqual('yes');
console.log(JSON.stringify(result, null, 2));
});
export default tap.start();