mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(editor): provide yaml validation for docker compose in the portainer web editor [BE-11697] (#526)
This commit is contained in:
parent
0ebfe047d1
commit
81c5f4acc3
27 changed files with 2046 additions and 36 deletions
16
app/setup-tests/mock-codemirror.tsx
Normal file
16
app/setup-tests/mock-codemirror.tsx
Normal file
|
@ -0,0 +1,16 @@
|
|||
export function mockCodeMirror() {
|
||||
vi.mock('@uiw/react-codemirror', () => ({
|
||||
__esModule: true,
|
||||
default: () => <div />,
|
||||
oneDarkHighlightStyle: {},
|
||||
keymap: {
|
||||
of: () => ({}),
|
||||
},
|
||||
}));
|
||||
vi.mock('yaml-schema', () => ({
|
||||
yamlSchema: () => [],
|
||||
validation: () => ({
|
||||
of: () => ({}),
|
||||
}),
|
||||
}));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue