Skip to content

Commit 2bc0af3

Browse files
committed
core: add ts test template
1 parent bec4c97 commit 2bc0af3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

util/pools_utils.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ export const TSconfig: CodeConfig = {
3535
ext: 'test.ts',
3636
comment: '//',
3737
fileNameStyle: (s, i) => `_${i.toString().padStart(4, '0')}_${underline(s)}`,
38+
test: (meta) => {
39+
const { code } = meta
40+
meta.code = `${code}\n
41+
test('test', async () => {
42+
})
43+
`
44+
return meta
45+
},
3846
}
3947

4048
export const Goconfig: CodeConfig = {

0 commit comments

Comments
 (0)