Code Monkey home page Code Monkey logo

Comments (5)

robb avatar robb commented on June 13, 2024

It should be possible to make beforeEach (and friends) have a parameter type that would suggest to AppCode that it's a block.

I believe the reason that beforeEach and it take id as a parameter for their block is that ^{ /* … */ } and ^AsyncBlock { done(); } have different signatures. It's pretty much a poor man's overloading.

Have you looked if AppCode supports code snippets that you could use?

from specta.

fatuhoku avatar fatuhoku commented on June 13, 2024

Aye, Live Templates. I generally try to avoid configuring the IDE outside of project configuration though and am happy with defaults. For good reason: I once had a set of Live Template bindings for Specta for creating beforeEach, it, context etc. but since my trial expired I accidentally deleted them all!

Now I'd have to set them up again. :(

I haven't looked into whether they are exportable.

from specta.

gfontenot avatar gfontenot commented on June 13, 2024

FWIW I went through this way back in #41. I still think it would be rad to get this working, but I understand why it's set up the way it is.

from specta.

robb avatar robb commented on June 13, 2024

Looks like AppCode 3.0 will ship with Kiwi Live Templates, so that seems to be way to go.

from specta.

fatuhoku avatar fatuhoku commented on June 13, 2024

Haha, good solution. I cannot wait. I trust that it'll work well with Specta as well.

from specta.

Related Issues (20)

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.