fix(core): update
This commit is contained in:
@ -6,14 +6,14 @@ import * as smartpath from '@pushrocks/smartpath';
|
||||
|
||||
export { smartpath };
|
||||
|
||||
const __dirname = smartpath.get.dirnameFromImportMetaUrl(import.meta.url);
|
||||
const testDir = smartpath.get.dirnameFromImportMetaUrl(import.meta.url);
|
||||
|
||||
process.env['key1'] = 'original';
|
||||
|
||||
let testQenv: qenv.Qenv;
|
||||
|
||||
tap.test('should create a new class', async () => {
|
||||
testQenv = new qenv.Qenv(path.join(__dirname, 'assets'), path.join(__dirname, 'assets'), false);
|
||||
testQenv = new qenv.Qenv(path.join(testDir, 'assets'), path.join(testDir, 'assets'), false);
|
||||
expect(testQenv).toBeInstanceOf(qenv.Qenv);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user