-
Couldn't load subscription status.
- Fork 55
Closed
Description
I am getting the following error for the following test with jest-axe:
Am I missing something?
Error: Not implemented: window.computedStyle(elt, pseudoElt)
test/setup.ts:
import '@testing-library/jest-dom/extend-expect'
import 'jest-axe/extend-expect'file.spec.tsx:
const a11y = await axe(container)
expect(a11y).toHaveNoViolations()jest.config.js
{
displayName: 'web:test',
preset: 'ts-jest',
testEnvironment: 'jsdom',
testMatch: ['**/__tests__/**/+(*.)+(spec|test).+(js|ts)?(x)'],
moduleNameMapper: {
'^~/(.*)$': '<rootDir>/src/$1',
'^test/(.*)$': '<rootDir>/test/$1'
},
setupFilesAfterEnv: ['<rootDir>/test/setup.ts'],
globals: {
'ts-jest': {
tsconfig: {
jsx: 'react'
}
}
}
}deps:
"jest": "^26.6.3",
"jest-axe": "^4.1.0",
"react-test-renderer": "^17.0.1",
"ts-jest": "^26.4.4",
"typescript": "^4.1.2"
MkMan, mheob, Anvarmirzo and ryparker
Metadata
Metadata
Assignees
Labels
No labels