Skip to content

Commit

Permalink
add back coverage ignore-s
Browse files Browse the repository at this point in the history
  • Loading branch information
kalinchernev committed Oct 21, 2020
1 parent c3cdcc5 commit bf44557
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 19 deletions.
1 change: 1 addition & 0 deletions example/v2/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* istanbul ignore file */
/* eslint import/no-extraneous-dependencies: 0 */

// Dependencies
Expand Down
2 changes: 2 additions & 0 deletions example/v2/routes.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* istanbul ignore file */

// Sets up the routes.
module.exports.setup = function (app) {
/**
Expand Down
2 changes: 2 additions & 0 deletions example/v2/routes2.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* istanbul ignore file */

module.exports.setup = function (app) {
/**
* @swagger
Expand Down
2 changes: 2 additions & 0 deletions example/v2/swaggerDef.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* istanbul ignore file */

const host = `http://${process.env.IP}:${process.env.PORT}`;

module.exports = {
Expand Down
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,17 @@
{
"name": "swagger-jsdoc",
"description": "Generates swagger doc based on JSDoc",
"version": "4.2.0",
"engines": {
"node": ">=10.0.0"
},
"license": "MIT",
"description": "Generates swagger doc based on JSDoc",
"homepage": "https://github.com/Surnet/swagger-jsdoc",
"repository": {
"type": "git",
"url": "https://github.com/Surnet/swagger-jsdoc.git"
},
"keywords": [
"jsdoc",
"restful",
"api",
"express",
"swagger"
],
"author": "https://github.com/Surnet/swagger-jsdoc/graphs/contributors",
"bugs": {
"url": "https://github.com/Surnet/swagger-jsdoc/issues"
},
"main": "index.js",
"scripts": {
"test:lint": "eslint .",
"test:js": "jest --verbose",
"start": "node example/v2/app.js",
"test": "run-p test:* -cn"
},
"main": "index.js",
"bin": {
"swagger-jsdoc": "./bin/swagger-jsdoc.js"
},
Expand Down Expand Up @@ -56,6 +39,23 @@
"prettier": "2.1.2",
"supertest": "4.0.2"
},
"license": "MIT",
"homepage": "https://github.com/Surnet/swagger-jsdoc",
"repository": {
"type": "git",
"url": "https://github.com/Surnet/swagger-jsdoc.git"
},
"keywords": [
"jsdoc",
"restful",
"api",
"express",
"swagger"
],
"author": "https://github.com/Surnet/swagger-jsdoc/graphs/contributors",
"bugs": {
"url": "https://github.com/Surnet/swagger-jsdoc/issues"
},
"resolutions": {
"lodash": "^4.17.19",
"minimist": "^1.2.3"
Expand Down
2 changes: 2 additions & 0 deletions test/files/v2/api_definition.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* istanbul ignore file */

module.exports = {
info: {
// API informations (required)
Expand Down
2 changes: 2 additions & 0 deletions test/files/v2/deprecated_routes.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* istanbul ignore file */

module.exports.setup = function (app) {
/**
* @swagger
Expand Down
1 change: 1 addition & 0 deletions test/files/v2/empty_definition.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* istanbul ignore file */
2 changes: 2 additions & 0 deletions test/files/v2/testData.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* istanbul ignore file */

// Mock for Definitions Object. `definitions` is correct, not `definition`.
const testDataDefinitions = [
{
Expand Down
2 changes: 2 additions & 0 deletions test/files/v2/wrong-yaml-identation1.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* istanbul ignore file */

module.exports = (app) => {
/**
* @swagger
Expand Down
2 changes: 2 additions & 0 deletions test/files/v2/wrong-yaml-identation2.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* istanbul ignore file */

module.exports = (app) => {
/**
* @swagger
Expand Down
2 changes: 2 additions & 0 deletions test/files/v2/wrong_definition.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* istanbul ignore file */

const host = `http://${process.env.IP}:${process.env.PORT}`;

module.exports = {
Expand Down

0 comments on commit bf44557

Please sign in to comment.