MCPcopy
hub / github.com/vitejs/vite / sassOtherTests

Function sassOtherTests

playground/css/__tests__/sass-tests.ts:119–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117}
118
119export const sassOtherTests = () => {
120 test('@import dependency w/ sass entry', async () => {
121 expect(await getColor('.css-dep-sass')).toBe('orange')
122 })
123
124 test('@import dependency w/ sass export mapping', async () => {
125 expect(await getColor('.css-dep-exports-sass')).toBe('orange')
126 })
127
128 test('@import dependency w/ sass export mapping (deep)', async () => {
129 expect(await getColor('.css-dep-exports-deep-sass')).toBe('orange')
130 })
131
132 test('@import dependency w/ sass export wildcard to `_partial.scss`', async () => {
133 expect(await getColor('.css-dep-exports-partial-sass')).toBe('orange')
134 })
135
136 test('@import dependency w/out package scss', async () => {
137 expect(await getColor('.sass-dep')).toBe('lavender')
138 })
139}

Callers 1

tests.tsFile · 0.90

Calls 2

testFunction · 0.90
getColorFunction · 0.85

Tested by

no test coverage detected