title: Get URL to a local file with SPM (Swift Package Manager)
body: <p>I am trying to read <code>.json</code> file in my unit test and running it within Swift Package. Using Xcode 11 and Swift 5.1</p>
  
  <pre><code>let path = Bundle.main.url(forResource: filename, withExtension: "json")
  // Path is nil
  </code></pre>
  
  <p>I've been told that Swift packages don't have bundles any more. So how can I workaround this?</p>
  
  <p>Part of my Swift.package</p>
  
  <pre><code>.testTarget(
      name: "ProjectTests", 
      dependencies: [
          .target(name: "Project")
      ],
      path: "Tests",
      exclude: [
          "Folder/File.swift"
      ]
  )
  </code></pre>