fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(tests): cleanup test scripts

authored by

Jordan Shatford and committed by
Jordan Shatford
f83279c2 4d7e071d

+25 -31
+1 -2
test/e2e/client.angular.spec.ts
··· 1 1 import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; 2 2 3 + import { buildAngularProject, createAngularProject } from './scripts/angular'; 3 4 import browser from './scripts/browser'; 4 - import { buildAngularProject } from './scripts/buildAngularProject'; 5 5 import { cleanup } from './scripts/cleanup'; 6 6 import { copyAsset } from './scripts/copyAsset'; 7 - import { createAngularProject } from './scripts/createAngularProject'; 8 7 import { generateClient } from './scripts/generateClient'; 9 8 import server from './scripts/server'; 10 9
-25
test/e2e/scripts/buildAngularProject.ts
··· 1 - import path from 'node:path'; 2 - 3 - import { sync } from 'cross-spawn'; 4 - 5 - export const buildAngularProject = (dir: string, name: string, output: string) => { 6 - const cwd = `./test/e2e/generated/${dir}/${name}/`; 7 - sync( 8 - 'ng', 9 - [ 10 - 'build', 11 - '--output-path', 12 - output, 13 - '--optimization', 14 - 'false', 15 - '--configuration', 16 - 'development', 17 - '--source-map', 18 - 'false', 19 - ], 20 - { 21 - cwd: path.resolve(cwd), 22 - stdio: 'inherit', 23 - } 24 - ); 25 - };
+22
test/e2e/scripts/createAngularProject.ts test/e2e/scripts/angular.ts
··· 44 44 recursive: true, 45 45 }); 46 46 }; 47 + 48 + export const buildAngularProject = (dir: string, name: string, output: string) => { 49 + const cwd = `./test/e2e/generated/${dir}/${name}/`; 50 + sync( 51 + 'ng', 52 + [ 53 + 'build', 54 + '--output-path', 55 + output, 56 + '--optimization', 57 + 'false', 58 + '--configuration', 59 + 'development', 60 + '--source-map', 61 + 'false', 62 + ], 63 + { 64 + cwd: path.resolve(cwd), 65 + stdio: 'inherit', 66 + } 67 + ); 68 + };
+1 -2
test/e2e/v2.angular.spec.ts
··· 1 1 import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; 2 2 3 + import { buildAngularProject, createAngularProject } from './scripts/angular'; 3 4 import browser from './scripts/browser'; 4 - import { buildAngularProject } from './scripts/buildAngularProject'; 5 5 import { cleanup } from './scripts/cleanup'; 6 6 import { copyAsset } from './scripts/copyAsset'; 7 - import { createAngularProject } from './scripts/createAngularProject'; 8 7 import { generateClient } from './scripts/generateClient'; 9 8 import server from './scripts/server'; 10 9
+1 -2
test/e2e/v3.angular.spec.ts
··· 1 1 import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; 2 2 3 + import { buildAngularProject, createAngularProject } from './scripts/angular'; 3 4 import browser from './scripts/browser'; 4 - import { buildAngularProject } from './scripts/buildAngularProject'; 5 5 import { cleanup } from './scripts/cleanup'; 6 6 import { copyAsset } from './scripts/copyAsset'; 7 - import { createAngularProject } from './scripts/createAngularProject'; 8 7 import { generateClient } from './scripts/generateClient'; 9 8 import server from './scripts/server'; 10 9