fix(build): modernize project configuration, dependencies, and node-based test setup
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
|
||||
import { tap } from '@git.zone/tstest/tapbundle';
|
||||
import { GlobalRegistrator } from '@happy-dom/global-registrator';
|
||||
import * as smartntml from '../ts/index.js';
|
||||
|
||||
let testSmartntmlInstance: smartntml.Smartntml;
|
||||
|
||||
tap.registerCleanup(async () => {
|
||||
if (GlobalRegistrator.isRegistered) {
|
||||
await GlobalRegistrator.unregister();
|
||||
}
|
||||
await tap.stopForcefully(0);
|
||||
});
|
||||
|
||||
tap.test('first test', async () => {
|
||||
testSmartntmlInstance = new smartntml.Smartntml();
|
||||
});
|
||||
@@ -17,8 +25,4 @@ tap.test('should render a string', async () => {
|
||||
console.log(stringResult);
|
||||
});
|
||||
|
||||
tap.test('should log', async () => {
|
||||
setTimeout(() => process.exit(0), 0);
|
||||
});
|
||||
|
||||
tap.start();
|
||||
export default tap.start();
|
||||
Reference in New Issue
Block a user