File
Blob: src/workerd/server/tests/unsafe-module/unsafe-module-test.wd-test
| 1 | using Workerd = import "/workerd/workerd.capnp"; |
| 2 | |
| 3 | const unitTests :Workerd.Config = ( |
| 4 | services = [ |
| 5 | ( name = "TEST_TMPDIR", disk = (writable = true) ), |
| 6 | ( name = "unsafe-module-test", |
| 7 | worker = ( |
| 8 | modules = [ |
| 9 | ( name = "worker", esModule = embed "unsafe-module-test.js" ), |
| 10 | ], |
| 11 | compatibilityFlags = ["nodejs_compat", "unsafe_module", "rpc"], |
| 12 | durableObjectNamespaces = [ |
| 13 | ( className = "TestDurableObject", uniqueKey = "durable" ), |
| 14 | ( className = "TestDurableObjectPreventEviction", uniqueKey = "durable-prevent-eviction", preventEviction = true ), |
| 15 | ( className = "TestEphemeralObject", ephemeralLocal = void ), |
| 16 | ( className = "TestEphemeralObjectPreventEviction", ephemeralLocal = void, preventEviction = true ), |
| 17 | ( className = "AlarmObject", uniqueKey = "alarm" ), |
| 18 | ( className = "StorageObject", uniqueKey = "storage" ), |
| 19 | ], |
| 20 | durableObjectStorage = ( localDisk = "TEST_TMPDIR" ), |
| 21 | bindings = [ |
| 22 | ( name = "DURABLE", durableObjectNamespace = "TestDurableObject" ), |
| 23 | ( name = "DURABLE_PREVENT_EVICTION", durableObjectNamespace = "TestDurableObjectPreventEviction" ), |
| 24 | ( name = "EPHEMERAL", durableObjectNamespace = "TestEphemeralObject" ), |
| 25 | ( name = "EPHEMERAL_PREVENT_EVICTION", durableObjectNamespace = "TestEphemeralObjectPreventEviction" ), |
| 26 | ( name = "ALARM", durableObjectNamespace = "AlarmObject" ), |
| 27 | ( name = "STORAGE", durableObjectNamespace = "StorageObject" ), |
| 28 | ], |
| 29 | ) |
| 30 | ), |
| 31 | ], |
| 32 | ); |