|
1 |
| -import { vol, fs } from 'memfs' |
2 |
| -import { expect, test, vi, afterEach } from 'vitest' |
| 1 | +import { fs, vol } from 'memfs' |
3 | 2 | import { join } from 'node:path'
|
| 3 | +import { afterEach, expect, test, vi } from 'vitest' |
| 4 | +import { fsCpHelper, mockFileSystem } from '../../../tests/index.js' |
4 | 5 | import { BUILD_DIR } from '../constants.js'
|
5 | 6 | import { copyStaticContent } from './static.js'
|
6 |
| -import { mockFileSystem, fsCpHelper } from '../../../tests/index.js' |
7 | 7 |
|
8 | 8 | vi.mock('node:fs', () => fs)
|
9 | 9 | vi.mock('node:fs/promises', () => {
|
@@ -59,10 +59,7 @@ test('should copy files from the public directory to the publish directory', asy
|
59 | 59 |
|
60 | 60 | const filenamesInVolume = Object.keys(vol.toJSON())
|
61 | 61 | expect(filenamesInVolume).toEqual(
|
62 |
| - expect.arrayContaining([ |
63 |
| - `${PUBLISH_DIR}/public/fake-image.svg`, |
64 |
| - `${PUBLISH_DIR}/public/another-asset.json`, |
65 |
| - ]), |
| 62 | + expect.arrayContaining([`${PUBLISH_DIR}/fake-image.svg`, `${PUBLISH_DIR}/another-asset.json`]), |
66 | 63 | )
|
67 | 64 | })
|
68 | 65 |
|
|
0 commit comments