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

Plugin doesn't work at all with configuration added to package.json #19

Closed
mm-dsibinski opened this issue Apr 27, 2021 · 1 comment
Closed

Comments

@mm-dsibinski
Copy link
Contributor

mm-dsibinski commented Apr 27, 2021

Environment: Windows 10
jest-teamcity version: 1.9.0
TeamCity version: TeamCity Professional 2020.2.4 (build 86063)

Issue:
I installed the npm package, added this to my package.json:

"jest": {
        "reporters": ["default", "jest-teamcity"]
    }

and I use the npm test command defined as "test": "jest" in package.json to run my tests. The result on TeamCity server is standard text output, the same like without the plugin. The tests are also not included in TeamCity's tests results.

I also tried to set the environment variable in Windows TEAMCITY_VERSION (both as system variable and user variable), but when I execute npm test locally with this variable defined the output is still standard, not the TeamCity one.

Solution:
I found out that adding this configuration to package.json doesn't work anymore. It only worked for me when I added the configuration to jest's configuration file.

I issued a PR with the documentation update: #20

@mm-dsibinski mm-dsibinski changed the title Plugin doesn't work at all Plugin doesn't work at all with configuration added to package.json Apr 27, 2021
mm-dsibinski added a commit to mm-dsibinski/jest-teamcity that referenced this issue Apr 27, 2021
@itereshchenkov
Copy link
Owner

Thanks for updating documentation 👍
It's weird that it's not working with jest configuration at package.json. But might be some jest-specific issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants