diff --git a/.changeset/hip-chefs-double.md b/.changeset/hip-chefs-double.md new file mode 100644 index 0000000..94dff5e --- /dev/null +++ b/.changeset/hip-chefs-double.md @@ -0,0 +1,7 @@ +--- +"@open-frames/types": patch +--- + +Added state type +Added release config +Fixed test diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 00eb24a..37debe4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -30,6 +30,9 @@ jobs: run: | echo //registry.npmjs.org/:_authToken="${{ secrets.NPM_TOKEN }}" > .npmrc + - name: Install Node Modules + run: npm i + - name: Publish uses: changesets/action@v1 with: diff --git a/src/index.test.ts b/src/index.test.ts index ef86f7c..026b27d 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -60,8 +60,8 @@ test("should allow the fake validator to work", async () => { expectTypeOf(validationResponse.message).toMatchTypeOf(); expectTypeOf(validationResponse.message).not.toMatchTypeOf<{ bar: "baz" }>(); expect(validationResponse).toEqual({ - clientProtocol: "test", + clientProtocol: "test@2024-02-02", isValid: true, - data: { foo: "bar" }, + message: { foo: "bar" }, }); });