Skip to content

Commit f327d6b

Browse files
committed
test(ui-codemods): add back tests for v10 codemods with a nice Vitest config
Update Vitest config so it can handle both Node and web tests, make codemod tests with less magic
1 parent 512c0df commit f327d6b

File tree

16 files changed

+1721
-106
lines changed

16 files changed

+1721
-106
lines changed

package-lock.json

Lines changed: 31 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/* eslint-disable */
2+
// @ts-nocheck
3+
import { canvas, canvasHighContrast } from '@instructure/ui'
4+
5+
export const generateStyle = () => {
6+
return {
7+
logoSubtitle: {
8+
label: 'logoSubtitle',
9+
marginTop: '-3px'
10+
},
11+
optionWrapper: {
12+
label: 'optionWrapper',
13+
margin: '-0.5rem -0.75rem',
14+
padding: '0.5rem 0.75rem',
15+
border: '0 solid ' + canvas.colors.tiara,
16+
borderBottomWidth: '1px',
17+
display: 'flex',
18+
maxWidth: '100%',
19+
overflow: 'hidden',
20+
alignItems: 'center'
21+
},
22+
optionIcon: {
23+
label: 'optionIcon',
24+
width: '36px',
25+
height: '36px',
26+
backgroundColor: canvasHighContrast.colors.oxford,
27+
borderRadius: 100,
28+
flexShrink: 0,
29+
display: 'flex',
30+
justifyContent: 'center',
31+
alignItems: 'center'
32+
},
33+
truncateSingleLine: {
34+
overflow: 'hidden',
35+
whiteSpace: 'nowrap',
36+
textOverflow: 'ellipsis'
37+
}
38+
}
39+
}
40+
41+
export const generateComponentTheme = () => ({})
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/* eslint-disable */
2+
// @ts-nocheck
3+
import { canvas, canvasHighContrast } from '@instructure/ui'
4+
5+
export const generateStyle = () => {
6+
return {
7+
logoSubtitle: {
8+
label: 'logoSubtitle',
9+
marginTop: '-3px'
10+
},
11+
optionWrapper: {
12+
label: 'optionWrapper',
13+
margin: '-0.5rem -0.75rem',
14+
padding: '0.5rem 0.75rem',
15+
border: '0 solid ' + canvas.colors?.contrasts?.grey1214,
16+
borderBottomWidth: '1px',
17+
display: 'flex',
18+
maxWidth: '100%',
19+
overflow: 'hidden',
20+
alignItems: 'center'
21+
},
22+
optionIcon: {
23+
label: 'optionIcon',
24+
width: '36px',
25+
height: '36px',
26+
backgroundColor: canvasHighContrast.colors?.contrasts?.grey100100,
27+
borderRadius: 100,
28+
flexShrink: 0,
29+
display: 'flex',
30+
justifyContent: 'center',
31+
alignItems: 'center'
32+
},
33+
truncateSingleLine: {
34+
overflow: 'hidden',
35+
whiteSpace: 'nowrap',
36+
textOverflow: 'ellipsis'
37+
}
38+
}
39+
}
40+
41+
export const generateComponentTheme = () => ({})

0 commit comments

Comments
 (0)