diff --git a/package.json b/package.json index d3eb06d..2afbdfc 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ }, "devDependencies": { "babel-cli": "^6.22.2", - "babel-eslint": "^7.1.1", - "babel-jest": "^20.0.3", + "babel-eslint": "^8.0.0", + "babel-jest": "^21.0.2", "babel-polyfill": "^6.22.0", "babel-preset-es2015-node4": "^2.1.1", "eslint": "^4.3.0", @@ -32,8 +32,8 @@ "eslint-plugin-mocha": "^4.8.0", "eslint-plugin-springworks": "^2.0.1", "fixture-loader": "^1.0.1", - "jest": "^18.1.0", - "semantic-release": "^6.3.2" + "jest": "^21.1.0", + "semantic-release": "^8.0.0" }, "babel": { "presets": [ diff --git a/src/__tests__/__snapshots__/convert-to-markdown.test.js.snap b/src/__tests__/__snapshots__/convert-to-markdown.test.js.snap index ac707a6..e73a8de 100644 --- a/src/__tests__/__snapshots__/convert-to-markdown.test.js.snap +++ b/src/__tests__/__snapshots__/convert-to-markdown.test.js.snap @@ -1,3 +1,5 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + exports[`convertToMarkdown with a valid, parsed Swagger spec providing a response_example_provider function, to generate examples for each response should return contents of a valid .md file 1`] = ` "# Swagger Petstore, version 1.0.0 @@ -31,7 +33,7 @@ pet response - (array) - (object) A pet - - name (string) The pet\'s name + - name (string) The pet's name - tag (string) (optional) - id (int64) @@ -49,7 +51,7 @@ unexpected error \`\`\`json { - \"foo\": \"bar\" + \\"foo\\": \\"bar\\" } \`\`\` @@ -66,7 +68,7 @@ Creates a new pet in the store. Duplicates are allowed **Request Body** - (object) A pet - - name (string) The pet\'s name + - name (string) The pet's name - tag (string) (optional) #### Response: 200 OK @@ -76,7 +78,7 @@ pet response **Schema** - (object) A pet - - name (string) The pet\'s name + - name (string) The pet's name - tag (string) (optional) - id (int64) @@ -94,7 +96,7 @@ unexpected error \`\`\`json { - \"foo\": \"bar\" + \\"foo\\": \\"bar\\" } \`\`\` @@ -115,7 +117,7 @@ pet response **Schema** - (object) A pet - - name (string) The pet\'s name + - name (string) The pet's name - tag (string) (optional) - id (int64) @@ -133,7 +135,7 @@ unexpected error \`\`\`json { - \"foo\": \"bar\" + \\"foo\\": \\"bar\\" } \`\`\` @@ -171,7 +173,7 @@ unexpected error \`\`\`json { - \"foo\": \"bar\" + \\"foo\\": \\"bar\\" } \`\`\` " diff --git a/src/__tests__/__snapshots__/md-table.test.js.snap b/src/__tests__/__snapshots__/md-table.test.js.snap index 1324ff6..911dc65 100644 --- a/src/__tests__/__snapshots__/md-table.test.js.snap +++ b/src/__tests__/__snapshots__/md-table.test.js.snap @@ -1,3 +1,5 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + exports[`createTable alignment should align to a wide header 1`] = ` "| a | b | wide_header | |---|---|-------------| diff --git a/src/__tests__/__snapshots__/path-generator.test.js.snap b/src/__tests__/__snapshots__/path-generator.test.js.snap index fabb256..404aa50 100644 --- a/src/__tests__/__snapshots__/path-generator.test.js.snap +++ b/src/__tests__/__snapshots__/path-generator.test.js.snap @@ -1,3 +1,5 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + exports[`generatePath with an API spec having mixed properties; some defined, some omitted should render markdown and omit unspecified data, e.g. descriptions, schemas 1`] = ` "### GET /pets/{id} diff --git a/src/__tests__/__snapshots__/prepare-spec.test.js.snap b/src/__tests__/__snapshots__/prepare-spec.test.js.snap index 9d012b6..c07148b 100644 --- a/src/__tests__/__snapshots__/prepare-spec.test.js.snap +++ b/src/__tests__/__snapshots__/prepare-spec.test.js.snap @@ -1,3 +1,5 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + exports[`prepareSpec with a valid Swagger spec should inline all $ref references 1`] = ` Object { "basePath": "/api", @@ -25,7 +27,7 @@ Object { "description": "A pet", "properties": Object { "name": Object { - "description": "The pet\'s name", + "description": "The pet's name", "type": "string", }, "tag": Object { @@ -43,7 +45,7 @@ Object { "description": "A pet", "properties": Object { "name": Object { - "description": "The pet\'s name", + "description": "The pet's name", "type": "string", }, "tag": Object { @@ -145,7 +147,7 @@ Object { "description": "A pet", "properties": Object { "name": Object { - "description": "The pet\'s name", + "description": "The pet's name", "type": "string", }, "tag": Object { @@ -209,7 +211,7 @@ Object { "description": "A pet", "properties": Object { "name": Object { - "description": "The pet\'s name", + "description": "The pet's name", "type": "string", }, "tag": Object { @@ -232,7 +234,7 @@ Object { "description": "A pet", "properties": Object { "name": Object { - "description": "The pet\'s name", + "description": "The pet's name", "type": "string", }, "tag": Object { @@ -344,7 +346,7 @@ Object { "description": "A pet", "properties": Object { "name": Object { - "description": "The pet\'s name", + "description": "The pet's name", "type": "string", }, "tag": Object { diff --git a/src/__tests__/__snapshots__/resolve-api-spec.test.js.snap b/src/__tests__/__snapshots__/resolve-api-spec.test.js.snap index c152b9e..1be0369 100644 --- a/src/__tests__/__snapshots__/resolve-api-spec.test.js.snap +++ b/src/__tests__/__snapshots__/resolve-api-spec.test.js.snap @@ -1,3 +1,5 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + exports[`resolveApiSpec should resolve the spec 1`] = ` Object { "basePath": "/api", @@ -80,7 +82,7 @@ Object { "type": "integer", }, "name": Object { - "description": "The pet\'s name", + "description": "The pet's name", "type": "string", }, "tag": Object { @@ -130,7 +132,7 @@ Object { "description": "A pet", "properties": Object { "name": Object { - "description": "The pet\'s name", + "description": "The pet's name", "type": "string", }, "tag": Object { @@ -155,7 +157,7 @@ Object { "type": "integer", }, "name": Object { - "description": "The pet\'s name", + "description": "The pet's name", "type": "string", }, "tag": Object { @@ -255,7 +257,7 @@ Object { "type": "integer", }, "name": Object { - "description": "The pet\'s name", + "description": "The pet's name", "type": "string", }, "tag": Object { diff --git a/src/__tests__/__snapshots__/schema-generator.test.js.snap b/src/__tests__/__snapshots__/schema-generator.test.js.snap index 967beda..128c140 100644 --- a/src/__tests__/__snapshots__/schema-generator.test.js.snap +++ b/src/__tests__/__snapshots__/schema-generator.test.js.snap @@ -1,3 +1,5 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + exports[`createSchemaList with a array schema of $refs should return a list with the properties 1`] = ` "- (array) - ($ref: \`#/definitions/Pet\`)" diff --git a/src/__tests__/__snapshots__/toc-generator.test.js.snap b/src/__tests__/__snapshots__/toc-generator.test.js.snap index 3b1aaee..2a351d3 100644 --- a/src/__tests__/__snapshots__/toc-generator.test.js.snap +++ b/src/__tests__/__snapshots__/toc-generator.test.js.snap @@ -1,3 +1,5 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + exports[`generateTableOfContents should return the TOC section 1`] = ` "- [Endpoints](#endpoints) - [GET /pets](#get-pets)