Skip to content

Commit

Permalink
replaced faker.js with @faker-js/faker in fakerTansform plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Jul 1, 2023
1 parent 3ae837b commit 5aa9db3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions lib/plugin/fakerTransform.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@ const { faker } = require('@faker-js/faker');
const transform = require('../transform');

/**
* Use the [faker.js](https://www.npmjs.com/package/faker) package to generate fake data inside examples on your gherkin tests
*
* ![Faker.js](https://raw.githubusercontent.com/Marak/faker.js/master/logo.png)
* Use the `@faker-js/faker` package to generate fake data inside examples on your gherkin tests
*
* #### Usage
*
* To start please install `faker.js` package
* To start please install `@faker-js/faker` package
*
* ```
* npm install -D faker
* npm install -D @faker-js/faker
* ```
*
* ```
* yarn add -D faker
* yarn add -D @faker-js/faker
* ```
*
* Add this plugin to config file:
Expand Down
2 changes: 1 addition & 1 deletion test/rest/REST_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const FormData = require('form-data');
const TestHelper = require('../support/TestHelper');
const REST = require('../../lib/helper/REST');
const Container = require('../../lib/container');
const Secret = require("../../lib/secret");
const Secret = require('../../lib/secret');

const api_url = TestHelper.jsonServerUrl();
global.codeceptjs = require('../../lib');
Expand Down

0 comments on commit 5aa9db3

Please sign in to comment.