Git Product home page Git Product logo

Comments (3)

sanpj2292 avatar sanpj2292 commented on June 30, 2024

Hi @orrc ,

Thank you for trying to contribute to Rudderstack code-base.

Cannot find module 'rudder-transformer-cdk' from 'tests/utilities/test-utils.js'

Can you let me know if you've deleted the node_modules and did an npm install after making changes to appsFlyer source ?

However, it looks like the unit tests were entirely commented out, as part of #1033.

Wanted to share that the testing code is present but it is present as part of a utility function and the older way of writing tests has been commented out

Kindly reply back for the question, we'll get back to you as soon as we can!

Thank you

from rudder-transformer.

orrc avatar orrc commented on June 30, 2024

Hey, thanks for the quick reply!

I took a deeper look, and I think overall things are fine:

  • Doing a clean npm install, and running the commented-out code in __tests__/appsFlyer.test.js, there were no more runtime errors β€”Β only test failures.
  • But as you mention, that commented-out code is old β€” the remaining code at the bottom of the file executes the processor/router tests without any problems, and all they all pass.
  • However, in order to test the AppsFlyer source (which is what I want to do), I should actually be executing a different unit test file: __tests__/appsflyer_source.test.js (which also works fine).

So I guess perhaps just a small code cleanup would be good here, but otherwise feel free to close this :)

from rudder-transformer.

sanpj2292 avatar sanpj2292 commented on June 30, 2024

Thanks @orrc . Happy to see that you were able to make things work.
Will be closing this issue. Let us know if anything else comes up.

from rudder-transformer.

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.