Skip to content
This repository was archived by the owner on Feb 22, 2026. It is now read-only.
This repository was archived by the owner on Feb 22, 2026. It is now read-only.

Breaking test: generates one plural key for unkown languages #1069

@jmlavoier

Description

@jmlavoier

🐛 Bug Report

Running the yarn test

parser
    options
      1) generates one plural key for unknow languages


  0 passing (11ms)
  1 failing

  1) parser
       options
         generates one plural key for unknow languages:

      Uncaught AssertionError: expected { 'test {{count}}_one': '', …(2) } to deeply equal { 'test {{count}}_one': '', …(1) }
      + expected - actual

       {
      -  "test {{count}}_many": ""
         "test {{count}}_one": ""
         "test {{count}}_other": ""
       }

To Reproduce

$ yarn
$ yarn test

Expected behavior

Taking into consideration that I haven't changed anything in the codebase and I'm running it on the master branch, which is supposed to be the production-ready version, the test should run successfully.

 272 passing (18s)
  0 failing

Your Environment

  • runtime version: node v18
  • i18next version: ^23.5.1
  • i18next-parser version: 9.0.2
  • yarn version:: 1.22.22
  • os: Mac (M1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions