mirror of
				https://github.com/threeal/cmake-action.git
				synced 2025-11-04 13:53:41 +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"],
 | 
					  "extensionsToTreatAsEsm": [".ts", ".mts"],
 | 
				
			||||||
  "moduleNameMapper": {
 | 
					  "moduleNameMapper": {
 | 
				
			||||||
    "^(\\.{1,2}/.*)\\.mjs$": "$1.mts"
 | 
					    "^(\\.{1,2}/.*)\\.mjs$": "<rootDir>/dist/$1.mjs"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "testMatch": ["**/*.test.ts"],
 | 
					  "testMatch": ["**/*.test.ts"]
 | 
				
			||||||
  "transform": {
 | 
					 | 
				
			||||||
    "^.+\\.m?ts$": ["ts-jest", { "useESM": true }]
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -5,7 +5,7 @@
 | 
				
			|||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "bundle": "tsc && ncc build dist/main.mjs -o main",
 | 
					    "bundle": "tsc && ncc build dist/main.mjs -o main",
 | 
				
			||||||
    "check": "sort-package-json && prettier --write . !main !README.md && eslint src",
 | 
					    "check": "sort-package-json && prettier --write . !main !README.md && eslint src",
 | 
				
			||||||
    "test": "jest"
 | 
					    "test": "tsc && jest"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "@actions/core": "^1.10.1",
 | 
					    "@actions/core": "^1.10.1",
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user