pack-n-play icon indicating copy to clipboard operation
pack-n-play copied to clipboard

Let me run the code in my example

Open JustinBeckwith opened this issue 6 years ago • 3 comments

In addition to testing the TypeScript types, I also like to actually run my little sample app to make sure the module loads and such at runtime. It would be great if this module could do that for me

JustinBeckwith avatar Mar 19 '19 02:03 JustinBeckwith

You should be able to do that now. Do you have a concrete example that shows what post-install-check is missing?

DominicKramer avatar Mar 19 '19 17:03 DominicKramer

Right now the only method I see in the documentation is testInstallation. I want to also npm start in the CWD and capture the output.

JustinBeckwith avatar Mar 19 '19 17:03 JustinBeckwith

The example doesn't work because of the wrong import:

import {packNTest} from 'pack-n-play';

but after fixing the import, the test doesn't seem to pass with me (using Node 14).

grant avatar Oct 08 '21 22:10 grant