diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b4d8940..81cde7f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: with: node-version-file: '.nvmrc' - run: npm ci - - run: npm run lint + - run: npm run check - run: npm run build env: CONVEX_DEPLOYMENT: ${{ vars.CONVEX_DEPLOYMENT }} diff --git a/components/common/order.spec.ts b/components/common/order.spec.ts index a978723..1b44899 100644 --- a/components/common/order.spec.ts +++ b/components/common/order.spec.ts @@ -36,29 +36,29 @@ describe('starMudder', () => { describe('calculateReorderIndices', () => { describe('moving todo down', () => { test('from index 1 to 3', () => { - expect(calculateReorderIndices(1, 3, 6)).toEqual([3, 4]) + expect(calculateReorderIndices(1, 3)).toEqual([3, 4]) }) test('from index 0 to 1', () => { - expect(calculateReorderIndices(0, 1, 6)).toEqual([1, 2]) + expect(calculateReorderIndices(0, 1)).toEqual([1, 2]) }) test('from index 3 to 5', () => { - expect(calculateReorderIndices(3, 5, 6)).toEqual([5, 6]) + expect(calculateReorderIndices(3, 5)).toEqual([5, 6]) }) }) describe('moving todo up', () => { test('from index 3 to 1', () => { - expect(calculateReorderIndices(3, 1, 6)).toEqual([0, 1]) + expect(calculateReorderIndices(3, 1)).toEqual([0, 1]) }) test('from index 1 to 0', () => { - expect(calculateReorderIndices(1, 0, 6)).toEqual([-1, 0]) + expect(calculateReorderIndices(1, 0)).toEqual([-1, 0]) }) test('from index 5 to 3', () => { - expect(calculateReorderIndices(5, 3, 6)).toEqual([2, 3]) + expect(calculateReorderIndices(5, 3)).toEqual([2, 3]) }) }) }) diff --git a/cypress/e2e/spec.cy.ts b/cypress/e2e/spec.cy.ts index 00fd4d4..4341fa4 100644 --- a/cypress/e2e/spec.cy.ts +++ b/cypress/e2e/spec.cy.ts @@ -98,7 +98,7 @@ it('works', () => { assertLists( [], - ['take the bins out', 'be silly together', 'plan birthday day out'], + ['plan birthday day out', 'be silly together', 'take the bins out'], [], ) @@ -136,7 +136,7 @@ it('works', () => { assertLists( ['take the bins out'], - ['be silly together', 'plan birthday day out'], + ['plan birthday day out', 'be silly together'], [], ) }) diff --git a/package.json b/package.json index c4b1a16..b5a039c 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "scripts": { "android:dev": "next build && cap sync && mv out/home.html out/index.html && cap run android", "build": "convex codegen --typecheck=disable && next build", + "check": "npm run type-check && npm run lint && npm run test", "convex:dev": "convex dev --typecheck=disable", "convex:deploy": "convex deploy --typecheck=disable", "next:dev": "next dev -p 6603",