Giter VIP home page Giter VIP logo

Comments (7)

thymikee avatar thymikee commented on August 15, 2024

Hi @montella1507, thanks for your report, but this doesn't tell much. A repo with the issue would be helpful.

from jest-preset-angular.

montella1507 avatar montella1507 commented on August 15, 2024

Hello,

ok i will try to simulate it in your example app.

from jest-preset-angular.

montella1507 avatar montella1507 commented on August 15, 2024

@thymikee i have resolved my issue, yet i dont know why it occurs..

my project structure:
/src
app.module.ts
/shared
/models
/app
index.ts

That index.ts was reexported:
export * from './app';
it works for every build - ng build, ngc build, aot build.. but with JEST..

it takes "from './app'" as app.module.ts file.. So it is error...

from jest-preset-angular.

thymikee avatar thymikee commented on August 15, 2024

Try the latest version of the preset

from jest-preset-angular.

montella1507 avatar montella1507 commented on August 15, 2024

Current:
jest-preset-angular@^2.0.5

i would try and i will let you know.

from jest-preset-angular.

montella1507 avatar montella1507 commented on August 15, 2024

4.0.0-beta.1 works. Thank you :-))

Uff. i have spent 6 hours on everything :-) Reworked imports, tried to get rid of several barrels... Madge tool, ng tool for circullar dependencies :D unfortunately i just had to wait for the new version of preset :-)

from jest-preset-angular.

thymikee avatar thymikee commented on August 15, 2024

The fix for issues like this was a part of v3, which was released some time ago. Glad it worked for you :)

from jest-preset-angular.

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.