0
테스트 할 반응 구성 요소가 있습니다. webpack을 사용하여 CSS를 다음과 같이 가져옵니다.jest 테스트 스위트에서 CSS 모듈 파일을 제외하는 방법은 무엇입니까?
C:\Users\...\node_modules\openlayers\css\ol.css:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){.ol-box {
^
SyntaxError: Unexpected token .
어떻게 농담 테스트 스위트에서 CSS 파일을 제외 :
import styles from '../../node_modules/openlayers/css/ol.css' // eslint-disable-line no-unused-vars
농담을 실행 한 후 나는 오류가?
더 나은 질문 : 테스트 스위트를 실행하기 전에 webpack (또는 유사한 프리 프로세서)을 실행하는 방법은 무엇입니까? – Thomas