mirror of
				https://github.com/threeal/cmake-action.git
				synced 2025-11-03 21:33:42 +00:00 
			
		
		
		
	test: map imported module from the distribution files
This commit is contained in:
		
							parent
							
								
									ad6a9d3164
								
							
						
					
					
						commit
						6929d676af
					
				@ -10,10 +10,7 @@
 | 
			
		||||
  },
 | 
			
		||||
  "extensionsToTreatAsEsm": [".ts", ".mts"],
 | 
			
		||||
  "moduleNameMapper": {
 | 
			
		||||
    "^(\\.{1,2}/.*)\\.mjs$": "$1.mts"
 | 
			
		||||
    "^(\\.{1,2}/.*)\\.mjs$": "<rootDir>/dist/$1.mjs"
 | 
			
		||||
  },
 | 
			
		||||
  "testMatch": ["**/*.test.ts"],
 | 
			
		||||
  "transform": {
 | 
			
		||||
    "^.+\\.m?ts$": ["ts-jest", { "useESM": true }]
 | 
			
		||||
  }
 | 
			
		||||
  "testMatch": ["**/*.test.ts"]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -5,7 +5,7 @@
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "bundle": "tsc && ncc build dist/main.mjs -o main",
 | 
			
		||||
    "check": "sort-package-json && prettier --write . !main !README.md && eslint src",
 | 
			
		||||
    "test": "jest"
 | 
			
		||||
    "test": "tsc && jest"
 | 
			
		||||
  },
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "@actions/core": "^1.10.1",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user