Git Product home page Git Product logo

jest-silent-reporter's People

Contributors

gnbaron avatar rickhanlonii avatar ron23 avatar schinery avatar simenb avatar tkalmar avatar tspmelo avatar viceice avatar waldyrious avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

jest-silent-reporter's Issues

Option to output warnings

As part of cleaning out "cruft" in our tests, and sometimes problems in our production code, I want to NOT see:

  1. Progress messages -- ✔

And want to DO see:

  1. Test failures -- ✔
  2. Warnings (from node or react, etc.) -- ✘

This reporter is exactly what I need for (1) and (2), however, also suppresses warning for (3).


Feature request for an option not to suppress warning messages as tests run, to only suppress the progress-style messages.

jest --reporters=jest-silent-reporter return newman: could not find "jest-silent-reporter" reporter

newman: could not find "jest-silent-reporter" reporter
ensure that the reporter is installed in the same directory as newman
please install reporter using npm

  "devDependencies": {
    "async": "3.2.0",
    "newman": "5.2.2",
    "path": "0.12.7",
    "newman-reporter-allure": "1.0.7",
    "jest-silent-reporter": "0.4.0"
  }

command: npm install

newman command:

newman run collection.json -e env.json jest --reporters=jest-silent-reporter

Any idea?

Usage Example of CLI

Hey Great Repo,!!

I am trying to use CLI to set up the jest-silent-reporter, but the configuration options are not getting set.

If I try it this way
jest --config jest.config.js --reporters=jest-silent-reporter JEST_SILENT_REPORTER_SHOW_WARNINGS=true
It fails with error

Error: Could not resolve a module for a custom reporter.
Module name: JEST_SILENT_REPORTER_SHOW_WARNINGS=true

if I try it this way
jest --config jest.config.js --reporters=jest-silent-reporter --JEST_SILENT_REPORTER_SHOW_WARNINGS=true

The command works, but no warnings are shown, same behavior I have noticed for JEST_SILENT_REPORTER_SHOW_DOTS

Can you please add some more examples to your read me for usages of the env variables?

Add more info to README

I believe it would be useful to add more information to the README about what this package does, I found out about this package through this issue, if I came here directly from a search engine I wouldn't know what it does.

Thanks for the great work, by the way!

Option for console.error warnings

After upgrading Formik in a project that doesn't use this reporter I noticed that I was getting warnings that were using console.error instead of console.warn, and so weren't outputted when showWarnings is set to true.

console.error
      Warning: An update to Formik inside a test was not wrapped in act(...).

Would it be possible to add entry.type === 'error' to the console filtering check for warnings?

Avoid flashing

I really believe in this reporter - while coding, a developer needs a piece of mind and not tons of log entries.

Is there a way to take it a step further - avoid the terminal flashing/refreshing anytime the tests run? whenever the tests run, the terminal always updates itself with some default watcher message, can this be eliminated to make it even more quiet?

Windows 10 & powershell jest 29.7.0 + "@swc/jest": "^0.2.29" silent reporter not picked up

Hey there,

thanks heaps for creating this plugin, from the bottom of my heart and my eyes (crying over scrolling jest' default output).

Sadly it doesn't work for me. All I see is my regular jest output. I am on windows 10, my app uses:
"jest": "^29.7.0",
"jest-silent-reporter": "^0.5.0",

All I get is this:

❯ npx jest --reporters=jest-silent-reporter src
Error: Could not resolve a module for a custom reporter.
Module name: src

I tried to put src at the front which doesn't even mention the "could not resolve".

In both cases I get my regular jest output.

Any tips on how to fix this? Cheers

Add 0.3 release to github

Hey all, I see that master is not a main branch here, so latest changes are not shown on the commit history.

GitHub releases are also not created for v0.3

What I suggest is to

  • change default branch back to master
  • cherry pick commit from master to current default branch
  • setup automatic GitHub releases
  • add changelog
  • setup semantic releases + conventional commits

What's your thoughts on it, can contributors help with it, would maintainers help/support such initiative?

Add an option to keep the final report

Hey, great package. Can you add an option to keep the final report (see image below)?
It will be hard to keep track of the amount of many failures and it's not that verbose.

image

Show Seed when run with --randomize

At the moment this runner swallows all jest output.
When run with --randomize and (with or without --showSeed) the seed is not visible.
This makes it hard/impossible to rerun the test with the same seed because it is not visible.

Print failed file paths in same format as default reporter

With the default jest reporter, we can search (Cmd + F) for the failed tests through the logs by searching for "FAIL <base directory>".

This helps us instantly get an overview of how many tests have failed and is specially useful when checking test results in GitHub Actions logs.

It'd be great if this reporter printed failed file paths in a similar format.

Current behavior

File paths for failed tests are printed like this in GitHub Actions logs:

/runner/_work/project/root/src/example/__tests__/Example.test.tsx
... followed by stack trace

Expected behavior

Failed file paths printed in this format:

FAIL src/example/__tests__/Example.test.tsx
... followed by stack trace

Missing newline while using dot output

Hey,

using JEST_SILENT_REPORTER_DOTS=true is causing something like:

......................foo@bar:~/WebstormProjects/jest$

instead of:

......................

foo@bar:~/WebstormProjects/jest$

Is there a way to colorize the dots?

This package is really great.

In my machine the dots are white over the black background of my terminal, is there a way to make the dots green for a passing test and red for a failing test?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.