Skip to content

Commit

Permalink
fix(ci): also build in CI to catch typescript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed May 5, 2023
1 parent ccc2ea5 commit 6fbfed7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "dist/index.js",
"scripts": {
"build:watch": "tsc -w",
"build": "tsc",
"dev": "node dist/index.js",
"test": "vitest",
"lint": "eslint --ext .js,.ts,.tsx ."
Expand Down
4 changes: 2 additions & 2 deletions src/payload/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('flatten', () => {
expect(flat.id).not.toBe(main.id);
flat.id = 'new';

expect(flat.toJson()).toMatchSnapshot();
expect(flat.toJson('')).toMatchSnapshot();
});

it('should flatten and merge host', () => {
Expand Down Expand Up @@ -88,7 +88,7 @@ describe('flatten', () => {
const flat = flatten(main);
flat.id = 'new';

expect(flat.toJson()).toMatchSnapshot();
expect(flat.toJson('')).toMatchSnapshot();
expect(flat.childs[1].inComponent!.id).toEqual('4');
expect(flat.childs[2].inComponent!.id).toEqual('4');
});
Expand Down
2 changes: 1 addition & 1 deletion src/rules/ci.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('npm', () => {
files: {},
}),
});
expect(res.toJson().techs).toStrictEqual([
expect(res.toJson('').techs).toStrictEqual([
'browserstack',
'circleci',
'codesandboxci',
Expand Down
2 changes: 1 addition & 1 deletion src/rules/hosting.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('npm', () => {
files: {},
}),
});
expect(res.toJson().techs).toStrictEqual([
expect(res.toJson('').techs).toStrictEqual([
'expodev',
'flyio',
'githubpages',
Expand Down

0 comments on commit 6fbfed7

Please sign in to comment.