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

require error test-harness #74

Closed
Raynos opened this issue May 18, 2020 · 3 comments
Closed

require error test-harness #74

Raynos opened this issue May 18, 2020 · 3 comments
Assignees
Labels

Comments

@Raynos
Copy link

Raynos commented May 18, 2020

raynos at raynos-Precision-5530  
~/projects/fake-ses on master*
$ nectar test/index.js 
[*] Generating source file
[!] Require error : ./test-harness
raynos at raynos-Precision-5530  
~/projects/fake-ses on master*
$ head test/index.js 
'use strict'

const test = require('./test-harness').test

/** @typdef {import('aws-sdk)} AWS */

It looks like it does not understand require('./test-harness') but it DOES understand require('./test-harness.js')

I changed it to a full relative filename and it works.

@adrien-thierry
Copy link
Contributor

@Raynos ,

Thx, I will update the require function

@adrien-thierry adrien-thierry self-assigned this May 18, 2020
@adrien-thierry
Copy link
Contributor

I updated the require function, should be corrected

@Raynos
Copy link
Author

Raynos commented May 18, 2020

Can confirm, this fixed it.

I still get the "does not support async method / function" error but this one is fixed.

@Raynos Raynos closed this as completed May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants