File tree Expand file tree Collapse file tree 7 files changed +11
-9
lines changed Expand file tree Collapse file tree 7 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ Then run tests:
4949npm test
5050```
5151
52- Then run tests in watch mode:
52+ Or run tests in watch mode:
5353
5454``` shell
5555npm run tdd
Original file line number Diff line number Diff line change 22 "name" : " demo-bts" ,
33 "version" : " 0.5.0-alpha.1" ,
44 "private" : true ,
5+ "type" : " module" ,
56 "dependencies" : {
67 "@ui-schema/dictionary" : " ~0.1.0-alpha.2" ,
78 "@ui-schema/ds-bootstrap" : " ~0.5.0-alpha.2" ,
3031 "scripts" : {
3132 "start" : " cross-env NODE_ENV=development vite" ,
3233 "build" : " cross-env NODE_ENV=production vite build" ,
33- "test" : " vitest run --coverage" ,
34- "tdd" : " vitest"
34+ "test" : " vitest run --coverage --browser.headless=true" ,
35+ "tdd" : " vitest" ,
36+ "tdd-headless" : " vitest --browser.headless=true"
3537 }
3638}
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import 'bootstrap/dist/css/bootstrap.css' ;
3- import NavProject from "./components/NavProject" ;
4- import DemoEditor from "./components/DemoEditor" ;
3+ import NavProject from "./components/NavProject.jsx " ;
4+ import DemoEditor from "./components/DemoEditor.jsx " ;
55
66export default function App ( ) {
77 return (
Original file line number Diff line number Diff line change 11import { expect , test } from 'vitest'
22import { render } from 'vitest-browser-react'
33import { userEvent } from '@vitest/browser/context'
4- import App from './App' ;
4+ import App from './App.jsx ' ;
55
66test ( 'renders header' , async ( ) => {
77 const { getByText} = render ( < App /> ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { UIMetaProvider } from '@ui-schema/react/UIMeta'
44import { UIStoreProvider , createStore } from '@ui-schema/react/UIStore'
55import { storeUpdater } from '@ui-schema/react/storeUpdater'
66import { WidgetEngine } from '@ui-schema/react/WidgetEngine'
7- import { browserT } from '../t' ;
7+ import { browserT } from '../t.js ' ;
88import { DefaultHandler } from '@ui-schema/react/DefaultHandler' ;
99import { ValidityReporter } from '@ui-schema/react/ValidityReporter' ;
1010import { schemaPluginsAdapterBuilder } from '@ui-schema/react/SchemaPluginsAdapter' ;
Original file line number Diff line number Diff line change 11import React from "react" ;
2- import GithubLogo from "./GithubLogo" ;
2+ import GithubLogo from "./GithubLogo.jsx " ;
33
44export default function NavProject ( ) {
55 return < React . Fragment >
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { createRoot } from 'react-dom/client' ;
33import './index.css' ;
4- import App from './App' ;
4+ import App from './App.jsx ' ;
55
66createRoot ( document . getElementById ( 'root' ) )
77 . render ( < App /> ) ;
You can’t perform that action at this time.
0 commit comments