Git Product home page Git Product logo

cra-alias's People

Contributors

dougllima avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

dougllima

cra-alias's Issues

Jest collectCoverageFrom ignore paths not working

Hey

I use code coverage, however i have found when applying ignore paths to my jest configuration, they are no longer respected.

package.json

...
	"jest": {
		"collectCoverageFrom": [
			"src/**/**/**/*.js",
			"src/**/**/**/*.jsx",
			"!src/index.js",
			"!src/setupTests.js",
			"!src/**/stories/*.js"
		]
	},
...

please can you take a look at this?

ModuleNameMapper duplicate path

Hey Guys

There seems to be an issue where the moduleNameMapper path is replicated

    Please check your configuration for these entries:
    {
      "moduleNameMapper": {
        "/^@components(.*)$/": "/Users/xxx/Documents/Projects/react/xxx/xxx-ui/src/Users/xxx/Documents/Projects/react/xxx/xxx-ui/src/components$1"
      },
      "resolver": /Users/xxx/Documents/Projects/react/xxx/xxx-ui/node_modules/react-scripts/node_modules/jest-pnp-resolver/index.js
    }

this is preventing me from running any of my unit tests

jsconfig.json

{
  "compilerOptions": {
    "baseUrl": "src",
    "paths": {
      "@features": [
        "./features"
      ],
      "@components": [
        "components"
      ],
      "@constants": [
        "./constants"
      ],
      "@context": [
        "./context"
      ],
      "@reducers": [
        "./reducers"
      ],
      "@services": [
        "./services"
      ],
      "@hooks": [
        "./hooks"
      ]
    }
  }
}

Does not work on Linux or Mac

Hi, this is my configuraion:

{ "compilerOptions": { "baseUrl": "src", "paths": { "@core-components/*": ["./core/src/components/*"], "@core-utils/*": ["./core/src/utils/*"], "@core-layouts/*": ["./core/src/layouts/*"], "@core-static/*": ["./core/src/static/*"], "@core-fonts/*": ["./core/src/static/assets/fonts/*"], "@core-styles/*": ["core/src/styles/*"], "@core-src/*": ["./core/src/*"] } }, "include": ["src"] }

While this work perfectly fine on Windows importing scss. The same does not work on Linux and Mac.

Import line on src/styles/main.scss:
@import '~@core-styles/main';

Error:
@import '~@core-styles/main'; ^ File to import not found or unreadable: ~@core-styles/main. in /mnt/d/project-folder/src/styles/main.scss (line 2, column 1)

Again the solution works perfectly on windows.

baseUrl always invalid on windows.

When using this on windows, the baseUrl value is always invalid.
This happens cause of the path separator used on path.normalize
To avoid it, specify a format on the path.normalize call and on the valid paths

I can do a PR with this later

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.