Skip to content

Commit

Permalink
test: add alias for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
usualoma committed Apr 29, 2024
1 parent 35a18b9 commit 013f1f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mocks/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import honox from '../src/vite'
const root = './'

export default defineConfig({
resolve: {
alias: {
honox: path.resolve(__dirname, '../src'),
},
},
plugins: [
honox({
entry: './app/server.ts',
Expand Down
1 change: 1 addition & 0 deletions test-integration/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default defineConfig({
resolve: {
alias: {
'@': path.resolve(__dirname, '../mocks/app-alias'),
honox: path.resolve(__dirname, '../src'),
},
},
plugins: [
Expand Down

0 comments on commit 013f1f0

Please sign in to comment.