diff --git a/packages/build/__tests__/__snapshots__/schema.test.ts.snap b/packages/build/__tests__/__snapshots__/schema.test.ts.snap new file mode 100644 index 0000000..889463a --- /dev/null +++ b/packages/build/__tests__/__snapshots__/schema.test.ts.snap @@ -0,0 +1,40 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`HyperwebBuild builds the fixture project successfully 1`] = ` +{ + "methods": {}, + "state": { + "properties": { + "count": { + "type": "number", + }, + "startCoin": { + "properties": { + "amount": { + "type": "string", + }, + "denom": { + "type": "string", + }, + }, + "type": "object", + }, + "tokens": { + "items": { + "properties": { + "amount": { + "type": "string", + }, + "denom": { + "type": "string", + }, + }, + "type": "object", + }, + "type": "array", + }, + }, + "type": "object", + }, +} +`; diff --git a/packages/build/__tests__/schema.test.ts b/packages/build/__tests__/schema.test.ts index 72a083b..0713bde 100644 --- a/packages/build/__tests__/schema.test.ts +++ b/packages/build/__tests__/schema.test.ts @@ -48,5 +48,7 @@ describe('HyperwebBuild', () => { expect(schemaData).toHaveProperty('state'); expect(schemaData.state).toHaveProperty('type', 'object'); expect(schemaData.state).toHaveProperty('properties'); + + expect(schemaData).toMatchSnapshot(); }); });