Code Monkey home page Code Monkey logo

jest_totuiral's People

Contributors

dependabot[bot] avatar mangogan-git avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jest_totuiral's Issues

cocoscreator使用typescript時,單元測試遇到的問題

您好,使用jest測試cocoscreator內的各個typescript腳本。cmd都會跳錯,錯誤如下:
Test suite failed to run

TypeError: Cannot read property 'ccclass' of undefined

  2 | import {cc} from '../../../creator.d';
  3 | import {cc_decorator} from '../../../creator.d';
> 4 | const {ccclass, property} = cc_decorator;

解很久不知道該如何處理。看您的js腳本是有cc.class也可以通過測試的。
想請教該如何是好?
感謝您!

cocos creator 使用单元测试,关于加载资源的问题。

您好,使用jest測試cocos creator時候,如果涉及到cc.loader.loadRes進行加載的資源,cmd會報錯,錯誤如下:

Error: cc.SpriteFrame in "resources/case" does not exist.
     at xxxxx/cocos2d-js-for-preview.js:21000:46

找了很久都沒有找到解決方案,想請教一下該如何是好。
謝謝!

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.