Skip to content

Commit

Permalink
refactor: moves "options.json" to the root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-zakharchenko committed Oct 2, 2019
1 parent 5f75670 commit d91f1ad
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/usage-cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ CLI Options Reference

Remember you can always list all available arguments by ``dredd --help``.

.. cli-options:: ../lib/options.json
.. cli-options:: ../options.json
2 changes: 1 addition & 1 deletion lib/CLI.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const logger = require('./logger');
const { applyLoggingOptions } = require('./configuration');
const { spawn } = require('./childProcess');

const dreddOptions = require('./options');
const dreddOptions = require('../options.json');
const packageData = require('../package.json');

class CLI {
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"files": [
"bin",
"lib",
"options.json",
"README.md"
],
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/CLI-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { assert } = require('chai');

const configUtilsStub = require('../../lib/configUtils');
const loggerStub = require('../../lib/logger');
const options = require('../../lib/options');
const options = require('../../options.json');
const packageData = require('../../package.json');

const PORT = 9876;
Expand Down
2 changes: 1 addition & 1 deletion test/unit/HooksWorkerClient-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const whichStub = require('../../lib/which');
const loggerStub = require('../../lib/logger');

const Hooks = require('../../lib/Hooks');
const commandLineOptions = require('../../lib/options');
const commandLineOptions = require('../../options.json');

function measureExecutionDurationMs(fn) {
const time = process.hrtime();
Expand Down

0 comments on commit d91f1ad

Please sign in to comment.