Skip to content

Commit 567a491

Browse files
authored
Removed $ from README.md (#2372)
1 parent 3f59e62 commit 567a491

File tree

14 files changed

+34
-34
lines changed

14 files changed

+34
-34
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Looking to contribute? Read our [code of conduct](https://github.com/cucumber/.g
2828
Cucumber is [available on npm](https://www.npmjs.com/package/@cucumber/cucumber):
2929

3030
```shell
31-
$ npm install @cucumber/cucumber
31+
npm install @cucumber/cucumber
3232
```
3333

3434
## Get Started
@@ -79,7 +79,7 @@ Then('I should have heard {string}', function (expectedResponse) {
7979
Finally, run Cucumber:
8080

8181
```shell
82-
$ npx cucumber-js
82+
npx cucumber-js
8383
```
8484

8585
And see the output:

docs/cli.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Cucumber includes an executable file to run your scenarios. After installing the `@cucumber/cucumber` package, you can run it directly:
44

55
``` shell
6-
$ ./node_modules/.bin/cucumber-js
6+
./node_modules/.bin/cucumber-js
77
```
88

99
Or via a [`package.json` script](https://docs.npmjs.com/cli/v8/using-npm/scripts):
@@ -19,7 +19,7 @@ Or via a [`package.json` script](https://docs.npmjs.com/cli/v8/using-npm/scripts
1919
Or via [npx](https://docs.npmjs.com/cli/v8/commands/npx):
2020

2121
``` shell
22-
$ npx cucumber-js
22+
npx cucumber-js
2323
```
2424

2525
## Options
@@ -39,15 +39,15 @@ Additionally, there are a few options that are specific to the CLI:
3939
To see the available options for your installed version, run:
4040

4141
```shell
42-
$ cucumber-js --help
42+
cucumber-js --help
4343
```
4444

4545
## Exiting
4646

4747
By default, cucumber exits when the event loop drains. Use the `forceExit` configuration option in order to force shutdown of the event loop when the test run has finished:
4848

4949
- In a configuration file `{ forceExit: true }`
50-
- On the CLI `$ cucumber-js --force-exit`
50+
- On the CLI `cucumber-js --force-exit`
5151

5252
This is discouraged, as fixing the issues that causes the hang is a better long term solution. Some potential resources for that are:
5353
* [Node.js guide to debugging](https://nodejs.org/en/docs/inspector/)

docs/configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You can keep your configuration in a file. Cucumber will look for one of these f
1818
You can also put your file somewhere else and tell Cucumber via the `--config` CLI option:
1919

2020
```shell
21-
$ cucumber-js --config config/cucumber.json
21+
cucumber-js --config config/cucumber.json
2222
```
2323

2424
Here's a concise example of a configuration file in JSON format:
@@ -112,7 +112,7 @@ features/**/*.{feature,feature.md}
112112
If your features are somewhere else, you can override this by proving your own [glob](https://github.com/isaacs/node-glob) or directory:
113113

114114
- In a configuration file `{ paths: ['somewhere-else/**/*.feature'] }`
115-
- On the CLI `$ cucumber-js somewhere-else/**/*.feature`
115+
- On the CLI `cucumber-js somewhere-else/**/*.feature`
116116

117117
This option is repeatable, so you can provide several values and they'll be combined.
118118

@@ -130,7 +130,7 @@ By default, Cucumber finds support code files with this logic:
130130
If your files are somewhere else, you can override this by proving your own [glob](https://github.com/isaacs/node-glob), directory or file path to the `import` configuration option:
131131

132132
- In a configuration file `{ import: ['somewhere-else/support/*.js'] }`
133-
- On the CLI `$ cucumber-js --import somewhere-else/support/*.js`
133+
- On the CLI `cucumber-js --import somewhere-else/support/*.js`
134134

135135
Once you specify any `import` options, the defaults described above are no longer applied. The option is repeatable, so you can provide several values and they'll be combined, meaning you can load files from multiple locations.
136136

docs/dry_run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
You can run cucumber-js in "Dry Run" mode:
44

55
- In a configuration file `{ dryRun: true }`
6-
- On the CLI `$ cucumber-js --dry-run`
6+
- On the CLI `cucumber-js --dry-run`
77

88
The effect is that Cucumber will still do all the aggregation work of looking at your feature files, loading your support code etc but without actually executing the tests. Specifically:
99

docs/esm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ export const ci = {
6161
You can use [ESM loaders](https://nodejs.org/api/esm.html#loaders) to transpile your support code on the fly. The `requireModule` configuration option only works with CommonJS (i.e. `require` hooks) and is not applicable here. Cucumber doesn't have an equivalent option for ESM loaders because they currently can't be registered in-process, so you'll need to declare the loader externally, like this:
6262

6363
```shell
64-
$ NODE_OPTIONS="--loader <loader>" npx cucumber-js
64+
NODE_OPTIONS="--loader <loader>" npx cucumber-js
6565
```

docs/fail_fast.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Failing Fast
22

33
- In a configuration file `{ failFast: true }`
4-
- On the CLI `$ cucumber-js --fail-fast`
4+
- On the CLI `cucumber-js --fail-fast`
55

66
By default, Cucumber runs the entire suite and reports all the failures. `failFast` allows a developer workflow where you work on one failure at a time. Combining this feature with rerun files allows you to work through all failures in an efficient manner.
77

docs/filtering.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ You can use a few different configurations to have Cucumber filter which scenari
77
You can specify an individual feature file to be run:
88

99
- In a configuration file `{ paths: ['features/my_feature.feature'] }`
10-
- On the CLI `$ cucumber-js features/my_feature.feature`
10+
- On the CLI `cucumber-js features/my_feature.feature`
1111

1212
You can also specify a line within a file to target an individual scenario:
1313

1414
- In a configuration file `{ paths: ['features/my_feature.feature:3'] }`
15-
- On the CLI `$ cucumber-js features/my_feature.feature:3`
15+
- On the CLI `cucumber-js features/my_feature.feature:3`
1616

1717
This option is repeatable, so you can provide several values and they'll be combined.
1818

@@ -21,7 +21,7 @@ This option is repeatable, so you can provide several values and they'll be comb
2121
You can specify a regular expression against which scenario names are tested to filter which should run:
2222

2323
- In a configuration file `{ name: ['^start.+end$'] }`
24-
- On the CLI `$ cucumber-js --name "^start.+end$"`
24+
- On the CLI `cucumber-js --name "^start.+end$"`
2525

2626
To escape special regex characters in scenario name, use backslashes e.g., `\(Scenario Name\)`
2727

@@ -32,7 +32,7 @@ This option is repeatable, so you can provide several expressions and they'll al
3232
You can specify a [Cucumber tag expression](https://docs.cucumber.io/cucumber/api/#tag-expressions) to only run scenarios that match it:
3333

3434
- In a configuration file `{ tags: '@foo or @bar' }`
35-
- On the CLI `$ cucumber-js --tags "@foo or @bar"`
35+
- On the CLI `cucumber-js --tags "@foo or @bar"`
3636

3737
This option is repeatable, so you can provide several expressions and they'll be combined with an `and` operator, meaning a scenario needs to match all of them.
3838

@@ -41,7 +41,7 @@ This option is repeatable, so you can provide several expressions and they'll be
4141
You can specify the order that scenarios should run in:
4242

4343
- In a configuration file `{ order: 'defined' }`
44-
- On the CLI `$ cucumber-js --order defined`
44+
- On the CLI `cucumber-js --order defined`
4545

4646
The default is `defined` where scenarios are run in the order they are discovered in. This roughly means alphabetical order of file path followed by sequential order within each file, although if you pass multiple globs/paths to the `paths` option this order will be honoured.
4747

docs/formatters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cucumber-js provides many built-in Formatters, plus building blocks with which y
77
You can specify one or more formats via the `format` configuration option:
88

99
- In a configuration file `{ format: ['progress-bar', ['html', 'cucumber-report.html']] }`
10-
- On the CLI `$ cucumber-js --format progress-bar --format "html":"cucumber-report.html"`
10+
- On the CLI `cucumber-js --format progress-bar --format "html":"cucumber-report.html"`
1111

1212
For each format you specify, you have to provide one or two values. The first (required) is to identify the formatter. It can take a few forms:
1313

@@ -30,7 +30,7 @@ Some notes on specifying Formatters:
3030
Many formatters, including the built-in ones, support some configuration via options. You can provide this data as an object literal via the `formatOptions` configuration option, like this:
3131

3232
- In a configuration file `{ formatOptions: { someOption: true } }`
33-
- On the CLI `$ cucumber-js --format-options '{"someOption":true}'`
33+
- On the CLI `cucumber-js --format-options '{"someOption":true}'`
3434

3535
This option is repeatable, so you can use it multiple times and the objects will be merged with the later ones taking precedence.
3636

docs/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
With [npm](https://www.npmjs.com/):
44

55
```shell
6-
$ npm install @cucumber/cucumber
6+
npm install @cucumber/cucumber
77
```
88

99
With [Yarn](https://yarnpkg.com/):
1010

1111
```shell
12-
$ yarn add @cucumber/cucumber
12+
yarn add @cucumber/cucumber
1313
```
1414

1515
## Invalid installations

docs/parallel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Cucumber supports running scenarios in parallel. The main process becomes a "coordinator" and spins up several separate Node.js processes to be the "workers". You can enable this with the `parallel` configuration option:
44

55
- In a configuration file `{ parallel: 3 }`
6-
- On the CLI `$ cucumber-js --parallel 3`
6+
- On the CLI `cucumber-js --parallel 3`
77

88
The number you provide is the number of workers that will run scenarios in parallel.
99

0 commit comments

Comments
 (0)