File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
source/ports/node_port/test Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,13 @@ describe('metacall', () => {
4545 describe ( 'fail' , ( ) => {
4646 it ( 'require' , ( ) => {
4747 assert . throws ( ( ) => { require ( './asd.invalid' ) } , new Error ( 'Cannot find module \'./asd.invalid\'' ) ) ;
48+ // TODO: Improve error messages
49+ assert . throws ( ( ) => { require ( './asd.py' ) } , new Error ( 'MetaCall could not load from file' ) ) ;
50+ assert . throws ( ( ) => { require ( './asd.rb' ) } , new Error ( 'MetaCall could not load from file' ) ) ;
51+ assert . throws ( ( ) => { require ( './asd.cs' ) } , new Error ( 'MetaCall could not load from file' ) ) ;
52+ // TODO: Implement TS with NodeJS compatibility
53+ assert . throws ( ( ) => { require ( './asd.ts' ) } , new Error ( 'Cannot find module \'./asd.ts\'' ) ) ;
54+ assert . throws ( ( ) => { require ( './asd.tsx' ) } , new Error ( 'Cannot find module \'./asd.tsx\'' ) ) ;
4855 } ) ;
4956 } ) ;
5057
You can’t perform that action at this time.
0 commit comments