Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

denali test cannot find denali module #420

Open
knownasilya opened this issue Dec 15, 2017 · 0 comments
Open

denali test cannot find denali module #420

knownasilya opened this issue Dec 15, 2017 · 0 comments

Comments

@knownasilya
Copy link
Member

knownasilya commented Dec 15, 2017

denali test

cli v0.0.17 [local]   denali-cli:bootstrap discovering commands from addons +0ms
  denali-cli:find-addons searching for addons locally in /Users/iradchenko/sandbox/lft-server +0ms
  denali-cli:find-addons found 2 addons:
  denali-cli:find-addons   - denali [/Users/iradchenko/sandbox/lft-server/node_modules/denali]
  denali-cli:find-addons   - denali-typescript [/Users/iradchenko/sandbox/lft-server/node_modules/denali-typescript]
  denali-cli:find-addons  +30ms
  denali-cli:bootstrap found 10 commands from denali: [ build, console, destroy, generate, install, migrate, publish, routes, server, test ]  +744ms
 | denali v0.0.39 [local]

  denali-cli:bootstrap found 0 commands from denali-typescript: [  ]  +1ms
  denali-cli:command adding command: build +0ms
  denali-cli:command adding command: console +1ms
  denali-cli:command adding command: destroy <blueprint> +0ms
  denali-cli:command adding command: generate <blueprint> +1ms
  denali-cli:command adding command: install <addonName> +0ms
  denali-cli:command adding command: migrate +0ms
  denali-cli:command adding command: publish +0ms
  denali-cli:command adding command: routes +0ms
  denali-cli:command adding command: server +0ms
  denali-cli:command adding command: test [files...] +0ms
  denali-cli:command adding command: addon <name> +1ms
  denali-cli:command adding command: new <name> +0ms
  denali-cli:command building options for 'test' command +30ms
  denali-cli:command invoking 'test' command +4ms
  denali-cli:project creating project for /Users/iradchenko/sandbox/lft-server +0ms
  denali-cli:project assembling project build tree +0ms
  denali-cli:builder creating builder for project root +0ms
  denali-cli:builder creating builder for node_modules/denali +36ms
  denali-cli:builder creating builder for node_modules/denali-typescript +299ms
  denali-cli:builder denali is precompiled, using that +17ms
  denali-cli:builder denali-typescript is precompiled, using that +0ms
  denali-cli:project building project +390ms
==> [lft-server] Typescript compilation errors:
app/actions/application.ts(3,22): error TS2515: Non-abstract class 'ApplicationAction' does not implement inherited abstract member 'respond' from class 'Action'.
app/actions/trucks/create.ts(5,19): error TS7031: Binding element 'body' implicitly has an 'any' type.
app/actions/trucks/destroy.ts(5,19): error TS7031: Binding element 'params' implicitly has an 'any' type.
app/actions/trucks/show.ts(5,19): error TS7031: Binding element 'params' implicitly has an 'any' type.
app/actions/trucks/update.ts(5,19): error TS7031: Binding element 'params' implicitly has an 'any' type.
app/actions/trucks/update.ts(5,27): error TS7031: Binding element 'body' implicitly has an 'any' type.
config/environment.ts(1,43): error TS7006: Parameter 'environment' implicitly has an 'any' type.
test/acceptance/trucks-test.ts(40,65): error TS2345: Argument of type '{}' is not assignable to parameter of type 'string'.

  denali-cli:project broccoli build finished +1s
  denali-cli:project copying broccoli build output to final destination dir: tmp/lft-server-test +0ms
  denali-cli:project sending package.json to nsp for audit +22ms
  denali-cli:project build finalized +18ms
===> Running lft-server tests ...
✔ lft-server build complete (1.272s)
module.js:538
    throw err;
    ^

Error: Cannot find module 'denali'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/users/iradchenko/sandbox/lft-server/test/acceptance/index-test.ts:1:1)
    at Module._compile (module.js:635:30)
    at extensions.(anonymous function) (/Users/iradchenko/sandbox/lft-server/node_modules/require-precompiled/index.js:13:11)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/iradchenko/sandbox/lft-server/node_modules/ava/lib/process-adapter.js:104:4)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/iradchenko/sandbox/lft-server/node_modules/ava/lib/test-worker.js:33:1)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
module.js:538
    throw err;
    ^

Error: Cannot find module 'denali'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/users/iradchenko/sandbox/lft-server/test/acceptance/trucks-test.ts:1:1)
    at Module._compile (module.js:635:30)
    at extensions.(anonymous function) (/Users/iradchenko/sandbox/lft-server/node_modules/require-precompiled/index.js:13:11)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/iradchenko/sandbox/lft-server/node_modules/ava/lib/process-adapter.js:104:4)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/iradchenko/sandbox/lft-server/node_modules/ava/lib/test-worker.js:33:1)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)

  2 todo
  2 exceptions

  ✖ tmp/lft-server-test/test/acceptance/index-test.js exited with a non-zero exit code: 1

  ✖ tmp/lft-server-test/test/acceptance/trucks-test.js exited with a non-zero exit code: 1


===> Tests failed 💥
===> exiting with 1

Both the default and a new acceptance test fail in this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant