8000 [dove/hygen-cli] Name temp dirs like feathers_ts_koa by FossPrime · Pull Request #2460 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions packages/cli/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,22 @@ function combinate<O extends Record<string | number, any[]>> (obj: O) {
}
return combos;
}

const combinations = process.env.CI ? combinate(matrix) : [defaultCombination];

describe('@feathersjs/cli', () => {
const oldCwd = process.cwd();
let tmpDir: string;

beforeEach(async () => {
tmpDir = await mkdtemp(path.join(os.tmpdir(), 'feathers-'));
process.chdir(tmpDir);
});

afterEach(() => process.chdir(oldCwd));

for (const { language, framework } of combinations) {
it(`generates ${language} ${framework} app and passes tests`, async () => {
const name = `feathers_${language}_${framework}`;
const tmpDir = await mkdtemp(path.join(os.tmpdir(), name + '-'));
const appPrompts = {
framework,
language,
name: 'feathers-cli-test',
name: name,
description: 'The Feathers CLI test app',
lib: 'src',
packager: 'npm',
Expand Down
0