wix-incubator / corvid-types

Type definitions for Corvid by Wix
MIT License
5 stars 3 forks source link

test(add tests): unit and integration tests #8

Closed nemni8 closed 4 years ago

nemni8 commented 5 years ago

WIP

this PR is changing the way public, backend and pages get their declarations. I splitted the declaration.d.ts file into 3 files. one that includes node module typings (Buffer) one that includes $w typings and all other declarations currently i have 3 green basic tests basic that compile sample-code from all types (backend, public and pages).

dor-itzhaki commented 5 years ago

you should keep the negative test code examples as minimal as possible so it will be easier to understand what they test. for example, in the negative/backend-$w-module, keep only the $w-module.js file which contains the tested error.

regarding the positive code examples... we should later on think on adding much more content to them

@nemni8