Git Product home page Git Product logo

legacy-jest-lua's People

Contributors

grilme99 avatar

Stargazers

Kalrnlo avatar Michael Cooper avatar quamatic avatar  avatar  avatar Christopher Buss avatar ScriptOn avatar vocksel avatar Clown avatar richard avatar James Onnen avatar Matt Hargett avatar  avatar

Watchers

 avatar  avatar

Forkers

pluviolithic

legacy-jest-lua's Issues

Support saving snapshot files to disk

The utils.lua file in jest-snapshot defines a function for saving snapshot files to disk. However, this method depends on FileSystemService, which is an internal-only Roblox service. We should update this file to support the desired behaviour in more environments.

Decouple Jest packages from the Roblox datamodel

Before Jest can run in Lua environments other than Roblox's, it has to be decoupled from the Roblox datamodel. Primarily, this means:

  • All require calls should have their Instance paths replaced with file system strings.
  • Darklua should be used during the build/release pipeline to convert the string requires back to Instances for Roblox users.
  • Once the string requires work and pass all tests, internal structures in Jest should then be decoupled from the datamodel. This is a much larger effort, as Roblox changed all file system references to their datamodel equivalent. Whatever solution we come up with here needs to be backwards-compatible for Roblox users. All environments must be supported (command line and Roblox).

This is a major goal for this project, as many Lua users outside of Roblox would benefit from the full Jest testing suite. Contributors are welcome and appreciated for parts of this issue.

Support Snapshot Testing

Snapshot tests currently depend on CoreScriptSyncService and FileSystemService to read/write files and resolve the file path of scripts in the datamodel. These are internal Roblox services that developers typically don't have access to. This behaviour should be replaced by something else, but it's not clear what.

Snapshot Testing is completely unavailable until Roblox's internal behaviour is pulled out and replaced. Currently, Snapshot Tests can only run via roblox-cli, a command line tool only available to Roblox engineers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.