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.

cant run tests.....

See original GitHub issue

Git Branch: master Test Filter: EX00 Applying Test Filter: EX00 /Users/garrettjames/Desktop/thinkful-projects/sql/node_modules/pg-packet-stream/src/inbound-parser.test.ts:1 import buffers from ‘./testing/test-buffers’ ^^^^^^^

SyntaxError: Unexpected identifier at Module._compile (internal/modules/cjs/loader.js:723:23) at Module._extensions…js (internal/modules/cjs/loader.js:789:10) at Object.require.extensions.(anonymous function) [as .ts] (/Users/garrettjames/Desktop/thinkful-projects/sql/node_modules/ts-node/src/index.ts:392:14) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at /Users/garrettjames/Desktop/thinkful-projects/sql/node_modules/mocha/lib/mocha.js:334:36 at Array.forEach (<anonymous>) at Mocha.loadFiles (/Users/garrettjames/Desktop/thinkful-projects/sql/node_modules/mocha/lib/mocha.js:331:14) at Mocha.run (/Users/garrettjames/Desktop/thinkful-projects/sql/node_modules/mocha/lib/mocha.js:809:10) at Object.exports.singleRun (/Users/garrettjames/Desktop/thinkful-projects/sql/node_modules/mocha/lib/cli/run-helpers.js:108:16) at exports.runMocha (/Users/garrettjames/Desktop/thinkful-projects/sql/node_modules/mocha/lib/cli/run-helpers.js:142:13) at Object.exports.handler.argv [as handler] (/Users/garrettjames/Desktop/thinkful-projects/sql/node_modules/mocha/lib/cli/run.js:292:3) at Object.runCommand (/Users/garrettjames/Desktop/thinkful-projects/sql/node_modules/mocha/node_modules/yargs/lib/command.js:242:26) at Object.parseArgs [as _parseArgs] (/Users/garrettjames/Desktop/thinkful-projects/sql/node_modules/mocha/node_modules/yargs/yargs.js:1096:28) at Object.parse (/Users/garrettjames/Desktop/thinkful-projects/sql/node_modules/mocha/node_modules/yargs/yargs.js:575:25) at Object.exports.main (/Users/garrettjames/Desktop/thinkful-projects/sql/node_modules/mocha/lib/cli/cli.js:68:6) at Object.<anonymous> (/Users/garrettjames/Desktop/thinkful-projects/sql/node_modules/mocha/bin/mocha:162:29) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @mikeworks/sql-fundamentals@0.0.0-development test: scripty "EX00" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @mikeworks/sql-fundamentals@0.0.0-development test script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/garrettjames/.npm/_logs/2020-05-14T16_30_06_295Z-debug.log

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:15
  • Comments:15

github_iconTop GitHub Comments

3reactions
namidurucommented, Jul 20, 2020

Guys try to install with npm install --no-optional if you have only SQLite in your system

If you don’t have all DB systems mentioned in the course it throws that error.

Code is now working properly in my system with the following versions SQLite 3.28.0 Node Version is: v12.14.1

1reaction
bananaspycommented, Nov 20, 2020

is this working without --no-optional?

After setting up all databases try to checkout tag v1.0.21 using Node v9.11.2 - it worked for me without --no-optional

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't run or debug unit tests - Visual Studio Feedback
I'm using Visual Studio Community Edition 15.8.1 and I can't run or debug any unit tests. Every time I'm trying to run the...
Read more >
Tests not running in Test Explorer - visual studio
This was my problem, too. In VS 2019, it doesn't seem to happen with Xunit, though. But it always occur when using MsTest...
Read more >
Cannot run Unit Tests | Apple Developer Forums
1. Open project in Xcode which has unit tests · 2. Open the Test navigator · 3. Click a run button to run...
Read more >
Cant Run Tests on Rider 2021.1.X · Issue #76 - GitHub
Rider currently cannot run SpecFlow+Runner tests.
Read more >
Run unit tests with Test Explorer - Visual Studio (Windows)
Run tests after every build​​ To run your unit tests after each local build, open the settings icon in the Test Explorer toolbar...
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