fix(core): update
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as tsbundle from '../ts/index';
|
||||
|
||||
tap.test('first test', async () => {
|
||||
import * as path from 'path';
|
||||
|
||||
tap.skip.test('first test', async () => {
|
||||
await tsbundle.runCli();
|
||||
});
|
||||
|
||||
tap.test('should run a custom function', async () => {
|
||||
const tsbundleInstance = new tsbundle.TsBundle();
|
||||
await tsbundleInstance.buildProduction(process.cwd(), './test/ts_web/index.ts', './test/dist_manual/index.js')
|
||||
})
|
||||
|
||||
tap.start();
|
||||
|
@@ -1,3 +1,18 @@
|
||||
const myConst = 'hello';
|
||||
const myConst: string = 'hello';
|
||||
|
||||
function sealed(constructor: Function) {
|
||||
Object.seal(constructor);
|
||||
Object.seal(constructor.prototype);
|
||||
}
|
||||
|
||||
@sealed
|
||||
class BugReport {
|
||||
type = "report";
|
||||
title: string;
|
||||
|
||||
constructor(t: string) {
|
||||
this.title = t;
|
||||
}
|
||||
}
|
||||
|
||||
console.log(myConst);
|
||||
|
Reference in New Issue
Block a user