fix(build): modernize project configuration and tighten Node.js typing support
This commit is contained in:
+5
-3
@@ -2,7 +2,8 @@ import { tap, expect } from '@git.zone/tstest/tapbundle';
|
||||
import * as smartgit from '../ts/index.js';
|
||||
|
||||
import * as smartpath from '@push.rocks/smartpath';
|
||||
import * as path from 'path';
|
||||
import * as fs from 'node:fs/promises';
|
||||
import * as path from 'node:path';
|
||||
|
||||
let testSmartgitInstance: smartgit.Smartgit;
|
||||
const packageDir = path.join(smartpath.get.dirnameFromImportMetaUrl(import.meta.url), '../');
|
||||
@@ -20,8 +21,9 @@ tap.test('should create a new repo at .nogit', async () => {
|
||||
});
|
||||
|
||||
tap.test('should clone a repo', async () => {
|
||||
await fs.rm(testRepoDirSmartfile, { recursive: true, force: true });
|
||||
const gitRepo = await testSmartgitInstance.createRepoByClone(
|
||||
'https://gitlab.com/push.rocks/smartfile.git',
|
||||
'https://code.foss.global/push.rocks/smartfile.git',
|
||||
testRepoDirSmartfile
|
||||
);
|
||||
});
|
||||
@@ -48,4 +50,4 @@ tap.test('should print all commit messages', async () => {
|
||||
console.log(commitMessages);
|
||||
});
|
||||
|
||||
await tap.start();
|
||||
export default tap.start();
|
||||
|
||||
Reference in New Issue
Block a user