Skip to content
#

jest

Here are 4,420 public repositories matching this topic...

goldbergyoni
goldbergyoni commented Oct 29, 2019

🎉🎉 The Node.js best practices guide has gotten even better during September and October, thanks to the many awesome contributions made by the following folks 🎉🎉

📢 🇷🇺 Our guide is now also translated to Russian (+ other 8 languages)! This thanks to the AMAZING work of Alex Ivanov @contributorpw ❤️

The following folks suggested & contributed great new ideas and enhancements:
🌻 Adeel Imran @A

browne0
browne0 commented Jun 25, 2019

Hello! Big fan of enzyme here.

I use Enzyme a lot for unit testing and I've noticed recently that people are consistently recommending people use instance prop functions versus using the simulate behavior provided by Enzyme because of the bad implementation.

Is there anyway we could get the docs updated with what the preferred solution is? It's not really clear as the docs stand right now.

markerikson
markerikson commented Nov 18, 2019

Hi, I'm a Redux maintainer. I'd like to offer a couple suggestions.

Problem

The current Redux example implementation shows use of reducers with "hand-written" immutable update logic, and has a somewhat complex store configuration. In addition, the project currently uses a "folder-by-type" folder structure.

Proposed Solution

The project should switch to using the official [Redux

trustyoo86
trustyoo86 commented Jan 3, 2020

Is this a bug report or a feature request?

Feature request

Version Info

  • Version of Majestic: 1.6.1
  • Version of Jest: 24.9.0
  • Version of Node: 8.9.4
  • Operating System: Mac OS X

Reproduction Repo

I want to use this testing tool in my company, But someone ask me that change majestic logo in sidebar. I thought that change logo option is useful for company test server. C

KarlsDad
KarlsDad commented May 14, 2018

how can add a new module,

  1. npm install -g plop
  2. run plop $ plop module
  3. also fine ... `
    ? Module name (Casing will be modified) chat
    ? Module name (Casing will be modified) chat
    [SUCCESS] add \src\modules\chat\ChatState.js
    [SUCCESS] add \src\modules\chat\ChatView.js
    [SUCCESS] add \src\modules\chat\ChatViewContainer.js
    [SUCCESS] modify \src\redux\reducer.js
    [SUCCESS] modify \src
ckarmy
ckarmy commented Jan 4, 2019

I download the ZIP and run npm install but then I run expo start and I get:

[11:17:11] Starting project at /Volumes/Sata/repositories/snowflake copy
[11:17:12] Expo DevTools is running at http://localhost:19002
[11:17:12] Error: Missing app.json. See https://docs.expo.io/
[11:17:12] No Expo configuration found. Are you sure this is a project directory

How I solve this?

Th

tsdx
mercury-parser
svenwiegand
svenwiegand commented Aug 28, 2019
  • Platform: MacOS
  • Mercury Parser Version: master
  • Node Version (if a Node bug): v11.1.0
  • Browser Version (if a browser bug): n/a

Description

I have created a custom extractor for https://www.gruene.de/themen/arbeit which delivers the expected results for content and lead_image_url with the following specifications:

export const WwwGrueneDeExt
FezVrasta
FezVrasta commented Nov 26, 2019

I'd like to use jest-puppeteer pretty much like Jest + JSDOM, I will not test real web pages, but I need the real DOM APIs to test some code.

I would like to have access to window and/or document globally, how can I do?

This is my Jest config:

  "jest": {
    "preset": "jest-puppeteer",
    "testMatch": ["**/src/**/*.test.js"],
    "globalSetup": "jest-environment-puppetee
mininternet
mininternet commented Feb 9, 2018

@diegohaz - i noticed a couple of minor spelling errors on the main site:

Basic stack
It includes everything necessary to build a tipical web app with focus on productivity and developer experience.
Learn more about the recomended workflow

Should be typical, and recommended.

Just an FYI.

Thanks!

amexjake
amexjake commented Oct 31, 2018

I was noticing that when running jest with the --no-color flag, jest-image-snapshot was still using color. It looks like this is due to code introduced in #5 to solve the same issue that running jest with the --no-color flag would do. IMHO, all colorization should be consistent across all tests and handled at the jest level, not specified per expect() invocation.

Wanted to make sure tha

nas5w
nas5w commented Feb 25, 2019

Some folks have noted it would be beneficial to have this repository translated to other languages. One contributor has already volunteered to translate the repository into Russian (woohoo!).

If anyone has the time and drive to help out with other languages, please reply below with the proposed language and I'll give you the "go-ahead"... just to make sure two people don't create translations i

kenjiuno
kenjiuno commented Jun 12, 2019

I can obtain record list (in JSON) from server.
jsonTypes handler passes if record list is filled with designated items.
However jsonTypes handler seems to disallow empty record list: Expected '*' not found (path 'records.*')

repro/test.js:

const frisby = require('frisby'),
  Joi = frisby.Joi;

it('should pass', (done) => {
  frisby.fromJSON({ records: [] })
    .inspectBody()
lpikora
lpikora commented Dec 5, 2018

When building Android app for production build I get this lint error. Its because generator builds only folders drawable-land-xxxx and drawable-port-xxx. There should be build also default drawable-xxxx folders I think.

Temporary solution is suppress this lint error adding this code to android/app/build.gradle

application {
....
 lintOptions{
   disable 'MissingDefaultResourc
datenreisender
datenreisender commented Nov 29, 2019

Describe the feature you'd like:

Being new to testing-library, it all is a bit overwhelming. The long list of matchers jest-dom introduces, also makes it harder to start out.

Suggested implementation:

Group the matchers in the documentation over some headings, e.g. “Checking element existence”, “Checking forms”, “Checking element state”.

Describe alternatives you've cons

Improve this page

Add a description, image, and links to the jest topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the jest topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.