Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 24, 2024
1 parent 815c481 commit 878609e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/framework.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import path from 'node:path';
import { strict as assert } from 'node:assert';
import fs from 'node:fs';
import * as mm from 'mm';
import { mm, restore } from 'mm';
import { getFrameworkPath } from '../src/index.js';
import { getFilepath, testDir } from './helper.js';

describe('test/framework.test.ts', () => {
afterEach(mm.restore);
afterEach(restore);

it('should exist when specify baseDir', () => {
it('should get egg by default but not exist', () => {
Expand Down
2 changes: 0 additions & 2 deletions test/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { strict as assert } from 'node:assert';
import { rm } from 'node:fs/promises';
import fsPromise from 'node:fs/promises';
import { existsSync } from 'node:fs';
import * as mm from 'mm';
import coffee from 'coffee';
import { runscript } from 'runscript';
import utils from '../src/index.js';
Expand All @@ -24,7 +23,6 @@ describe('test/plugin.test.ts', () => {
assert(existsSync(tmp), `${tmp} not exists`);
});
afterEach(() => rm(tmp, { force: true, recursive: true }));
afterEach(mm.restore);

describe('getPlugins()', () => {
const bin = path.join(cwd, 'get_plugin.js');
Expand Down

0 comments on commit 878609e

Please sign in to comment.