Skip to content

Commit 02f105d

Browse files
committed
update test snapshot
1 parent 4aaffed commit 02f105d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"prebuild": "rimraf dist",
3131
"build": "yarn build:CSS && yarn build:rollup",
3232
"build:CSS": "node --loader ts-node/esm scripts/copyCSS.ts",
33-
"build:rollup": "rollup --config",
33+
"build:rollup": "rollup --config --environment TS_EXCLUDE:global-spec.ts",
3434
"dev": "yarn build:rollup --watch",
3535
"clean": "rimraf dist node_modules",
3636
"check:esm": "node --input-type=module --eval 'import \"@aws-amplify/ui-vue\"'",

packages/vue/rollup.config.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const input = ['src/index.ts'];
1212
const sourceMap = false;
1313
const esmOutputDir = 'dist/esm';
1414

15+
// Get files to exclude from TypeScript compilation
16+
const tsExclude = process.env.TS_EXCLUDE ? process.env.TS_EXCLUDE.split(',') : [];
17+
1518
// Common output options
1619
const cjsOutput = {
1720
dir: 'dist',
@@ -66,7 +69,7 @@ const config = defineConfig([
6669
tsconfigOverride: {
6770
compilerOptions: { sourceMap, declaration: true, declarationDir: 'dist', rootDir: 'src' },
6871
include: ['src/**/*'],
69-
exclude: ['node_modules', '**/__tests__/**', '**/*.test.*', 'scripts/**']
72+
exclude: ['node_modules', '**/__tests__/**', '**/*.test.*', 'scripts/**', ...tsExclude]
7073
}
7174
}),
7275
ensureStyles()
@@ -89,7 +92,7 @@ const config = defineConfig([
8992
tsconfigOverride: {
9093
compilerOptions: { sourceMap, declaration: false, rootDir: 'src', outDir: esmOutputDir },
9194
include: ['src/**/*'],
92-
exclude: ['node_modules', '**/__tests__/**', '**/*.test.*']
95+
exclude: ['node_modules', '**/__tests__/**', '**/*.test.*', ...tsExclude]
9396
}
9497
})
9598
],

packages/vue/src/components/__tests__/__snapshots__/select-mfa-type.spec.ts.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ exports[`SelectMfaType renders as expected 1`] = `
6262
6363
<input
6464
aria-invalid="false"
65+
checked=""
6566
class="amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input"
6667
data-amplify-input=""
6768
data-amplify-selectmfatype-input=""

0 commit comments

Comments
 (0)