question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FAIL server/controllers/Messages/resolver.test.ts

See original GitHub issue

Describe the bug:

On VM at 1 parent ff454cd commit 939a5d6abb8899ae736f11417d8013d18e8b8a71 ran

 sudo rm -rf node_modules/; sudo rm -rf client/node_modules/
 npx recursive-install
 npm run lint-and-test

to get error message: ‘FAIL server/controllers/Messages/resolver.test.ts’ Screenshot from 2021-04-27 22-58-55

Tell us about your browser and operating system:

  • Browser(s) name and version:
  • Operating System:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
NorthDecodercommented, Apr 28, 2021

@ojeytonwilliams Ohhh! I accidentally did not delete the .env file prior to running the tests. The error shown was correct because the newly updated .env.example file did not overwrite my existing .env file. Probably your suggested comment about a friendlier message would help. Zeko369 uncovered another issue though. That is good.

I created a gist script to help me remember the right sequence in the future.

1reaction
Sboonnycommented, Sep 6, 2022

I have closed this, because it looks like it’s solved

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve test.ts when running ng test? - Stack Overflow
Solution: I had remove the file test.ts from root to /src folder: /src/test.ts and it runs the command as expected.
Read more >
ts-jest - npm
ts -jest. A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript. NPM version NPM...
Read more >
Unit tests not working after upgrade to angular 5 and mdb pr
I just upgraded my project to angular 5.2.1 and mdb pro 5.1.2 (master branch) I added the include to the tsconfig.json include: ...
Read more >
Testing TypeScript apps using Jest - LogRocket Blog
Learn how to use the popular testing library, Jest, for your TypeScript apps in this detailed tutorial of functional test implementation.
Read more >
Component testing scenarios - Angular
app/banner/banner.component.detect-changes.spec.ts (AutoDetect Tests) ... You get this test failure message when the runtime environment compiles the source ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found