@@ -3,7 +3,6 @@ import * as os from 'os';
33import * as path from 'path' ;
44import type { Plugin , ResolvedConfig } from 'vite' ;
55import { afterEach , beforeEach , describe , expect , it , vi } from 'vitest' ;
6- import * as Sentry from '../..' ;
76import { sentryRemixVitePlugin } from '../../src/config/vite' ;
87
98describe ( 'sentryRemixVitePlugin' , ( ) => {
@@ -36,21 +35,21 @@ describe('sentryRemixVitePlugin', () => {
3635
3736 describe ( 'plugin configuration' , ( ) => {
3837 it ( 'should return a valid Vite plugin with correct name' , ( ) => {
39- const plugin = Sentry . sentryRemixVitePlugin ( ) ;
38+ const plugin = sentryRemixVitePlugin ( ) ;
4039
4140 expect ( plugin ) . toBeDefined ( ) ;
4241 expect ( plugin . name ) . toBe ( 'sentry-remix-route-manifest' ) ;
4342 expect ( plugin . enforce ) . toBe ( 'post' ) ;
4443 } ) ;
4544
4645 it ( 'should accept custom appDirPath option' , ( ) => {
47- const plugin = Sentry . sentryRemixVitePlugin ( { appDirPath : '/custom/path' } ) ;
46+ const plugin = sentryRemixVitePlugin ( { appDirPath : '/custom/path' } ) ;
4847
4948 expect ( plugin ) . toBeDefined ( ) ;
5049 } ) ;
5150
5251 it ( 'should work with no options' , ( ) => {
53- const plugin = Sentry . sentryRemixVitePlugin ( ) ;
52+ const plugin = sentryRemixVitePlugin ( ) ;
5453
5554 expect ( plugin ) . toBeDefined ( ) ;
5655 } ) ;
@@ -63,7 +62,7 @@ describe('sentryRemixVitePlugin', () => {
6362 fs . writeFileSync ( path . join ( routesDir , 'about.tsx' ) , '// about' ) ;
6463 fs . writeFileSync ( path . join ( routesDir , 'users.$id.tsx' ) , '// users' ) ;
6564
66- const plugin = Sentry . sentryRemixVitePlugin ( ) ;
65+ const plugin = sentryRemixVitePlugin ( ) ;
6766
6867 const mockConfig : Partial < ResolvedConfig > = {
6968 root : tempDir ,
@@ -82,7 +81,7 @@ describe('sentryRemixVitePlugin', () => {
8281 fs . writeFileSync ( path . join ( routesDir , 'index.tsx' ) , '// index' ) ;
8382 fs . writeFileSync ( path . join ( routesDir , 'users.$id.tsx' ) , '// users' ) ;
8483
85- const plugin = Sentry . sentryRemixVitePlugin ( ) ;
84+ const plugin = sentryRemixVitePlugin ( ) ;
8685
8786 const mockConfig : Partial < ResolvedConfig > = {
8887 root : tempDir ,
@@ -98,7 +97,7 @@ describe('sentryRemixVitePlugin', () => {
9897 } ) ;
9998
10099 it ( 'should handle errors gracefully and set empty manifest' , ( ) => {
101- const plugin = Sentry . sentryRemixVitePlugin ( { appDirPath : '/nonexistent/path' } ) ;
100+ const plugin = sentryRemixVitePlugin ( { appDirPath : '/nonexistent/path' } ) ;
102101
103102 const mockConfig : Partial < ResolvedConfig > = {
104103 root : tempDir ,
@@ -119,7 +118,7 @@ describe('sentryRemixVitePlugin', () => {
119118 fs . mkdirSync ( customRoutesDir , { recursive : true } ) ;
120119 fs . writeFileSync ( path . join ( customRoutesDir , 'index.tsx' ) , '// index' ) ;
121120
122- const plugin = Sentry . sentryRemixVitePlugin ( { appDirPath : customAppDir } ) ;
121+ const plugin = sentryRemixVitePlugin ( { appDirPath : customAppDir } ) ;
123122
124123 const mockConfig : Partial < ResolvedConfig > = {
125124 root : tempDir ,
@@ -137,7 +136,7 @@ describe('sentryRemixVitePlugin', () => {
137136 it ( 'should inject manifest into HTML with <head> tag' , ( ) => {
138137 fs . writeFileSync ( path . join ( routesDir , 'index.tsx' ) , '// index' ) ;
139138
140- const plugin = Sentry . sentryRemixVitePlugin ( ) ;
139+ const plugin = sentryRemixVitePlugin ( ) ;
141140
142141 const mockConfig : Partial < ResolvedConfig > = {
143142 root : tempDir ,
0 commit comments