Giter Site home page Giter Site logo

Comments (5)

andrewconnell avatar andrewconnell commented on July 19, 2024

Can you provide some context?

  • what version of SPFx are you using
  • share the contents of tsconfig.json

from jest-preset-spfx-react16.

Hylar-86 avatar Hylar-86 commented on July 19, 2024

SPFx - 1.14.0

tsconfig.json
{
"extends": "./node_modules/@microsoft/rush-stack-compiler-3.9/includes/tsconfig-web.json",
"compilerOptions": {
"target": "es5",
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"jsx": "react",
"declaration": true,
"sourceMap": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"outDir": "lib",
"inlineSources": false,
"strictNullChecks": false,
"noUnusedLocals": false,
"typeRoots": [
"./node_modules/@types",
"./node_modules/@microsoft"
],
"types": [
"webpack-env",
"es6-promise",
],
"lib": [
"es5",
"dom",
"es2015.collection",
"es2015.promise"
]
},
"include": [
"src//*.ts",
"src/
/*.tsx"
]
}

from jest-preset-spfx-react16.

andrewconnell avatar andrewconnell commented on July 19, 2024

Not sure if that's a copy-paste error or problem that you didn't fence the code in your response, but that's tsconfig.json isn't valid. One thing that stands out: the include array at the end isn't valid... it should be in the format ofsrc/**/*.ts.

Please recheck your tsconfig.

from jest-preset-spfx-react16.

Hylar-86 avatar Hylar-86 commented on July 19, 2024

Looks like that was a copy paste issues as i double checked and the format in the include is src/**/*.ts and src/**/*.tsx. When i paste it submit is looks like it is eatting the ** so i just attached the file.
tsconfig.zip

from jest-preset-spfx-react16.

andrewconnell avatar andrewconnell commented on July 19, 2024

The issue with just pasting code... it's being rendered as markdown. As I said in my last reply, read up on "fenced code blocks": https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks

I'll take a look at the issue when I have some time.

from jest-preset-spfx-react16.

Related Issues (11)

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.