Comments (5)
Can you provide some context?
- what version of SPFx are you using
- share the contents of tsconfig.json
from jest-preset-spfx-react16.
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.
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.
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.
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)
- Unexpected token export when running npm test HOT 7
- Problem when using WebPartTitle component HOT 4
- Gracefully handle failures in postinstall step
- Add automated tests
- Add continuous deployment
- Unable to use with ES6 modules HOT 30
- undefined class names HOT 5
- V1.3.1 causes different TSC rules to be applied than project settings HOT 2
- jest-preset.json testMatch Question HOT 7
- Unit testing typescript SPFx web part using jest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jest-preset-spfx-react16.