Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

328
Views
How to test a regular Javascript file in a React app

I'm creating a React application that also has a folder of helper functions to use later. The helper functions are written in plain JS. I created a test file for the helper functions but when I run tests I only see the App.test.js results.

I can't tell what I'm missing. Below is the helper function test file:

import { IsValidBinary } from "./validityFunctions";

test("01101 should be binary", () => {
  const binString = "01101";
  const isValid = IsValidBinary(binString);
  expect(isValid).toBe(true);
});

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!