diff --git a/test/config/fixtures/css/test/default-css.spec.ts b/test/config/fixtures/css/test/default-css.spec.ts index e368b79c5..be29171b8 100644 --- a/test/config/fixtures/css/test/default-css.spec.ts +++ b/test/config/fixtures/css/test/default-css.spec.ts @@ -22,16 +22,16 @@ describe('don\'t process css by default', () => { const { default: styles } = await import('../App.module.css') // HASH is static, based on the filepath to root - expect(styles.module).toBe('_module_c70a46') - expect(styles.someRandomValue).toBe('_someRandomValue_c70a46') + expect(styles.module).toBe('_module_cdbed7') + expect(styles.someRandomValue).toBe('_someRandomValue_cdbed7') const element = document.createElement('div') - element.className = '_module_c70a46' + element.className = '_module_cdbed7' const computed = window.getComputedStyle(element) expect(computed.display).toBe('block') expect(computed.width).toBe('') expect(element).toMatchInlineSnapshot(`
`) }) diff --git a/test/config/fixtures/css/test/process-css.spec.ts b/test/config/fixtures/css/test/process-css.spec.ts index 135313077..480fd670d 100644 --- a/test/config/fixtures/css/test/process-css.spec.ts +++ b/test/config/fixtures/css/test/process-css.spec.ts @@ -21,16 +21,16 @@ describe('process only css, not module css', () => { test('module is not processed', async () => { const { default: styles } = await import('../App.module.css') - expect(styles.module).toBe('_module_c70a46') - expect(styles.someRandomValue).toBe('_someRandomValue_c70a46') + expect(styles.module).toBe('_module_cdbed7') + expect(styles.someRandomValue).toBe('_someRandomValue_cdbed7') const element = document.createElement('div') - element.className = '_module_c70a46' + element.className = '_module_cdbed7' const computed = window.getComputedStyle(element) expect(computed.display).toBe('block') expect(computed.width).toBe('') expect(element).toMatchInlineSnapshot(` `) }) diff --git a/test/config/fixtures/css/test/process-module.spec.ts b/test/config/fixtures/css/test/process-module.spec.ts index e36a4c321..008126bb0 100644 --- a/test/config/fixtures/css/test/process-module.spec.ts +++ b/test/config/fixtures/css/test/process-module.spec.ts @@ -16,16 +16,16 @@ describe('processing module css', () => { test('module is processed', async () => { const { default: styles } = await import('../App.module.css') - expect(styles.module).toBe('_module_c70a46') + expect(styles.module).toBe('_module_cdbed7') expect(styles.someRandomValue).toBeUndefined() const element = document.createElement('div') - element.className = '_main_c70a46 _module_c70a46' + element.className = '_main_cdbed7 _module_cdbed7' const computed = window.getComputedStyle(element) expect(computed.display, 'css is processed').toBe('flex') expect(computed.width).toBe('100px') expect(element).toMatchInlineSnapshot(` `) }) diff --git a/test/config/test/cache.test.ts b/test/config/test/cache.test.ts index 81e6b2ac0..49fc53588 100644 --- a/test/config/test/cache.test.ts +++ b/test/config/test/cache.test.ts @@ -15,7 +15,7 @@ test('default', async () => { expect(stderr).toBe('') const cachePath = ctx!.cache.results.getCachePath() - const path = resolve(root, 'node_modules/.vite/vitest/d41d8cd98f00b204e9800998ecf8427e/results.json') + const path = resolve(root, 'node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json') expect(cachePath).toMatch(path) }) @@ -34,7 +34,7 @@ test('use cache.dir', async () => { expect(stderr).toContain('"cache.dir" is deprecated') const cachePath = ctx!.cache.results.getCachePath() - const path = resolve(root, 'node_modules/.vitest-custom/vitest/d41d8cd98f00b204e9800998ecf8427e/results.json') + const path = resolve(root, 'node_modules/.vitest-custom/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json') expect(cachePath).toMatch(path) }) @@ -53,7 +53,7 @@ test('use cacheDir', async () => { expect(stderr).toBe('') const cachePath = ctx!.cache.results.getCachePath() - const path = resolve(root, 'node_modules/.vite-custom/vitest/d41d8cd98f00b204e9800998ecf8427e/results.json') + const path = resolve(root, 'node_modules/.vite-custom/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json') expect(cachePath).toMatch(path) }) @@ -102,7 +102,7 @@ describe('with optimizer enabled', () => { expect(stderr).toBe('') const cachePath = ctx!.cache.results.getCachePath() - const path = resolve(root, 'node_modules/.vite/vitest/d41d8cd98f00b204e9800998ecf8427e/results.json') + const path = resolve(root, 'node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json') expect(cachePath).toBe(path) }) @@ -122,7 +122,7 @@ describe('with optimizer enabled', () => { expect(stderr).toContain('"cache.dir" is deprecated') const cachePath = ctx!.cache.results.getCachePath() - const path = resolve(root, 'node_modules/.vitest-custom/vitest/d41d8cd98f00b204e9800998ecf8427e/results.json') + const path = resolve(root, 'node_modules/.vitest-custom/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json') expect(cachePath).toBe(path) }) @@ -142,7 +142,7 @@ describe('with optimizer enabled', () => { expect(stderr).toBe('') const cachePath = ctx!.cache.results.getCachePath() - const path = resolve(root, 'node_modules/.vite-custom/vitest/d41d8cd98f00b204e9800998ecf8427e/results.json') + const path = resolve(root, 'node_modules/.vite-custom/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json') expect(cachePath).toBe(path) }) }) diff --git a/test/optimize-deps/test/ssr.test.ts b/test/optimize-deps/test/ssr.test.ts index 39d92337d..d40d88b5e 100644 --- a/test/optimize-deps/test/ssr.test.ts +++ b/test/optimize-deps/test/ssr.test.ts @@ -8,5 +8,5 @@ import { expect, test } from 'vitest' // TODO: flaky on Windows // https://github.com/vitest-dev/vitest/pull/5215#discussion_r1492066033 test.skipIf(process.platform === 'win32')('import.meta.url', () => { - expect(importMetaUrl).toContain('/node_modules/.vite/vitest/d41d8cd98f00b204e9800998ecf8427e/deps_ssr/') + expect(importMetaUrl).toContain('/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/deps_ssr/') }) diff --git a/test/optimize-deps/test/web.test.ts b/test/optimize-deps/test/web.test.ts index 2d1a0d64e..69718a737 100644 --- a/test/optimize-deps/test/web.test.ts +++ b/test/optimize-deps/test/web.test.ts @@ -6,5 +6,5 @@ import { importMetaUrl } from '@vitest/test-dep-url' import { expect, test } from 'vitest' test('import.meta.url', () => { - expect(importMetaUrl).toContain('/node_modules/.vite/vitest/d41d8cd98f00b204e9800998ecf8427e/deps/') + expect(importMetaUrl).toContain('/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/deps/') })