hazzard993 / busted-tstl Goto Github PK
View Code? Open in Web Editor NEWTypeScript declarations for Busted (lua)
TypeScript declarations for Busted (lua)
Not sure if it is part of my active project setup, but I needed to manually add /** @noSelfInFile */
to the top of the definitions within assertions/
, e.g.:
/** @noSelfInFile */
declare namespace assert {
In order for my busted tests to run correctly. Calls like assert.are.equals(foo, bar)
were receiving a self parameter as the first argument, and comparing that to the first value passed in, which obviously weren't equal. Manually adding the no self in file annotations resolved the issue.
Is there an expected configuration for the calling project that is required for these definitions to work without modification?
Hello,
I ran into an issue today using the TypeScript/Busted method spy.revert()
; the generated lua code is spy.revert()
but actually needs to be spy:revert()
as noted here. A quick change in the busted.d.ts file of revert: (this: void) => void;
to revert: () => void;
(and likewise for clear
) fixes the issue.
Thank you for this wonderful tool!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.