Skip to content

Commit

Permalink
chore: Split newshape test
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Oct 7, 2024
1 parent e55880a commit 1b12ac1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions cypress/integration/rendering/newShapes.classic.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { newShapeTest } from './newShapes';

newShapeTest('classic');
3 changes: 3 additions & 0 deletions cypress/integration/rendering/newShapes.handDrawn.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { newShapeTest } from './newShapes';

newShapeTest('handDrawn');
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { imgSnapshotTest } from '../../helpers/util.ts';

const looks = ['classic', 'handDrawn'] as const;
const directions = [
'TB',
//'BT',
Expand Down Expand Up @@ -58,7 +57,7 @@ const newShapesSets = [
newShapesSet6,
];

looks.forEach((look) => {
export const newShapeTest = (look: 'classic' | 'handDrawn') => {
directions.forEach((direction) => {
newShapesSets.forEach((newShapesSet) => {
describe(`Test ${newShapesSet.join(', ')} in ${look} look and dir ${direction}`, () => {
Expand Down Expand Up @@ -143,4 +142,6 @@ looks.forEach((look) => {
});
});
});
});
};

// cspell:ignore clazz

0 comments on commit 1b12ac1

Please sign in to comment.