forked from Roblox/dom-testing-library-lua
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjs-to-lua.config.js
More file actions
31 lines (31 loc) · 861 Bytes
/
js-to-lua.config.js
File metadata and controls
31 lines (31 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = {
lastSync: {
ref: "54bfa48a5417a4cb588b24dec2685eaa3436fa69",
conversionToolVersion: "58068bfb077b61f23dd128ad1ec2cecf77e2fe21",
},
upstream: {
owner: "testing-library",
repo: "dom-testing-library",
primaryBranch: "main",
},
downstream: {
owner: "roblox",
repo: "dom-testing-library-lua-internal",
primaryBranch: "main",
patterns: ["**/*.lua"],
ignorePatterns: ["Packages/**/*", "bin/**/*"],
},
renameFiles: [
[
(filename) => filename.endsWith("index.lua"),
(filename) => filename.replace("index.lua", "init.lua"),
],
[
(filename) =>
filename.includes("__test__") &&
!filename.endsWith(".spec.lua") &&
!filename.includes("src/__tests__/helpers/test-utils.js"),
(filename) => filename.replace(/.lua$/, "spec.lua"),
],
],
};