Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support locale definitions directly from faker.fake #884

Merged
merged 3 commits into from May 7, 2022

Conversation

ST-DDT
Copy link
Member

@ST-DDT ST-DDT commented Apr 28, 2022

Previously

  • fake('{{<pattern>}}')
    • -> fake.<pattern>()

Now

  • fake('{{<pattern>}}')
    • -> faker.<pattern>()
    • -> faker.random.arrayElement(faker.definitions.<pattern>)

@ST-DDT ST-DDT added c: feature Request for new feature p: 1-normal Nothing urgent labels Apr 28, 2022
@ST-DDT ST-DDT requested review from a team April 28, 2022 12:36
@ST-DDT ST-DDT self-assigned this Apr 28, 2022
@codecov
Copy link

codecov bot commented Apr 28, 2022

Codecov Report

Merging #884 (940dfad) into main (f2c3a39) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #884   +/-   ##
=======================================
  Coverage   99.66%   99.66%           
=======================================
  Files        1957     1957           
  Lines      209797   209810   +13     
  Branches      885      890    +5     
=======================================
+ Hits       209084   209097   +13     
  Misses        693      693           
  Partials       20       20           
Impacted Files Coverage Δ
src/modules/fake/index.ts 100.00% <100.00%> (ø)

src/fake.ts Outdated Show resolved Hide resolved
Shinigami92
Shinigami92 previously approved these changes Apr 28, 2022
Copy link
Member

@Shinigami92 Shinigami92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like your enhancements doesn't break anything, so I approve

@ST-DDT ST-DDT added this to the v6.3 - Next Minor milestone Apr 28, 2022
@ST-DDT ST-DDT added the s: accepted Accepted feature / Confirmed bug label Apr 28, 2022
@ST-DDT ST-DDT requested review from a team April 29, 2022 08:17
@ST-DDT ST-DDT force-pushed the feature/fake-with-locale-definitions branch from c900f75 to 2eb85de Compare May 3, 2022 17:41
src/modules/fake/index.ts Outdated Show resolved Hide resolved
src/modules/fake/index.ts Outdated Show resolved Hide resolved
@ST-DDT ST-DDT requested a review from a team May 3, 2022 18:42
@ST-DDT ST-DDT enabled auto-merge (squash) May 7, 2022 08:21
@ST-DDT ST-DDT merged commit a60d5e3 into main May 7, 2022
@ST-DDT ST-DDT deleted the feature/fake-with-locale-definitions branch May 7, 2022 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: feature Request for new feature p: 1-normal Nothing urgent s: accepted Accepted feature / Confirmed bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants