-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed jest for shaders loaders upgrade.
- Loading branch information
1 parent
c1b9bfa
commit 6a1a8dd
Showing
4 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import FRAGMENT_SHADER from './fragment_shader.frag'; | ||
import VERTEX_SHADER from './vertex_shader.vert'; | ||
import FRAGMENT_SHADER from '!!raw-loader!./fragment_shader.frag'; | ||
import VERTEX_SHADER from '!!raw-loader!./vertex_shader.vert'; | ||
export { FRAGMENT_SHADER, VERTEX_SHADER }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const config = { | ||
moduleNameMapper: { | ||
"^!!raw-loader!.*": "jest-raw-loader", | ||
} | ||
} | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import FRAGMENT_SHADER from './fragment_shader.frag'; | ||
import VERTEX_SHADER from './vertex_shader.vert'; | ||
import FRAGMENT_SHADER from '!!raw-loader!./fragment_shader.frag'; | ||
import VERTEX_SHADER from '!!raw-loader!./vertex_shader.vert'; | ||
export { FRAGMENT_SHADER, VERTEX_SHADER } |