fix(bundling): update snapshots for copy assets plugin (#27610)
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> Unit tests are failing due to failing snapshots ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Snapshots are updated appropritately. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
This commit is contained in:
parent
042049c785
commit
1824267788
@ -74,6 +74,7 @@ exports[`preset should create files (preset = react-standalone bundler = vite) 1
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
||||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin';
|
||||
|
||||
export default defineConfig({
|
||||
root: __dirname,
|
||||
@ -89,7 +90,7 @@ export default defineConfig({
|
||||
host: 'localhost',
|
||||
},
|
||||
|
||||
plugins: [react(), nxViteTsPaths()],
|
||||
plugins: [react(), nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])],
|
||||
|
||||
// Uncomment this if you are using workers.
|
||||
// worker: {
|
||||
@ -160,6 +161,7 @@ exports[`preset should create files (preset = vue-monorepo) 1`] = `
|
||||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
||||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin';
|
||||
|
||||
export default defineConfig({
|
||||
root: __dirname,
|
||||
@ -175,7 +177,7 @@ export default defineConfig({
|
||||
host: 'localhost',
|
||||
},
|
||||
|
||||
plugins: [vue(), nxViteTsPaths()],
|
||||
plugins: [vue(), nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])],
|
||||
|
||||
// Uncomment this if you are using workers.
|
||||
// worker: {
|
||||
@ -212,6 +214,7 @@ exports[`preset should create files (preset = vue-standalone) 1`] = `
|
||||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
||||
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin';
|
||||
|
||||
export default defineConfig({
|
||||
root: __dirname,
|
||||
@ -227,7 +230,7 @@ export default defineConfig({
|
||||
host: 'localhost',
|
||||
},
|
||||
|
||||
plugins: [vue(), nxViteTsPaths()],
|
||||
plugins: [vue(), nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])],
|
||||
|
||||
// Uncomment this if you are using workers.
|
||||
// worker: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user